✅Me ayudan a ponerle nivel a este scrip?

nyebez

Member
Messages
15
Points
148
este scrip es de un server 7.6

si me funciona y todo, pero me gustaria saver como le pondria nivel?
este es lo que viene



function onUse(cid, item, frompos, itemEx, toPosition)
local mana_minimum = 150
local mana_maximum = 250
-- Mana Formula Settings END --
local mana_add = math.random(mana_minimum, mana_maximum)
doPlayerAddMana(cid, mana_add)
doRemoveItem(item.uid, 1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POISONDAMAGE)
return TRUE
end


GRACIAS DE ANTE MANO
 
Solution
este scrip es de un server 7.6

si me funciona y todo, pero me gustaria saver como le pondria nivel?
este es lo que viene



function onUse(cid, item, frompos, itemEx, toPosition)
local mana_minimum = 150
local mana_maximum = 250
-- Mana Formula Settings END --
local mana_add = math.random(mana_minimum, mana_maximum)
doPlayerAddMana(cid, mana_add)
doRemoveItem(item.uid, 1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POISONDAMAGE)
return TRUE
end


GRACIAS DE ANTE MANO
Hola,
Nivel a que te refieres nivel de jugador para utilizarlo ?

La función sería algo similar que en 12x, solamente las palabras quizás distintas, después del
-- maná fórmula --
Agregar:
if getPlayerLevel(cid) >= 100 then

Y después del (poison...
este scrip es de un server 7.6

si me funciona y todo, pero me gustaria saver como le pondria nivel?
este es lo que viene



function onUse(cid, item, frompos, itemEx, toPosition)
local mana_minimum = 150
local mana_maximum = 250
-- Mana Formula Settings END --
local mana_add = math.random(mana_minimum, mana_maximum)
doPlayerAddMana(cid, mana_add)
doRemoveItem(item.uid, 1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POISONDAMAGE)
return TRUE
end


GRACIAS DE ANTE MANO
Hola,
Nivel a que te refieres nivel de jugador para utilizarlo ?

La función sería algo similar que en 12x, solamente las palabras quizás distintas, después del
-- maná fórmula --
Agregar:
if getPlayerLevel(cid) >= 100 then

Y después del (poison damage) agregar un end

Cambia el 100 para tu nivel.
Quedaría,


Code:
function onUse(cid, item, frompos, itemEx, toPosition)
local mana_minimum = 150
local mana_maximum = 250

-- Mana Formula Settings END --
if getPlayerLevel(cid) >= 100 then
local mana_add = math.random(mana_minimum, mana_maximum)
doPlayerAddMana(cid, mana_add)
doRemoveItem(item.uid, 1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POISONDAMAGE)
else
doPlayerSendTextMessage(cid, "You dont have the level")
end
return TRUE
end
 
Solution

Tibia Server Lists

#1 FEATURED US Ultron OT 1,387 / 5,000 EXPStages PROTO8.6 ENGINEUltron OT RANK PTS6.6 -9% VOTES0 #2 FEATURED US Nefera 158 / 0 EXPx1 PROTO15.20 ENGINECrystal Server RANK PTS5.9 +22% VOTES0 #3 FEATURED CL ZHYRAVEX 8 / 500 EXPx5 PROTO10.98 ENGINETFS 1.4.2 RANK PTS4.9 +100% VOTES0 #4 FEATURED ES Deixis 0 / 0 EXPStages PROTO1098 ENGINETFS RANK PTS4.0 -70% VOTES1 #5 DE DBU Online 213 / 400 EXP11 PROTO8.6 ENGINETFS 1.0 RANK PTS6.1 +1,000% VOTES0 #6 BR Exordion Legacy 57 / 2,000 EXPx2 PROTO7.72 ENGINEExordion RANK PTS5.7 +2% VOTES0 #7 MX Marlboro War 19 / 300 EXP999 PROTO8.6 ENGINETFS 0.3.7 RANK PTS5.5 -25% VOTES0 #8 BR Tibinha YurOts 28 / 150 EXPStages PROTO7.4 ENGINEYurOTS 1.5 RANK PTS5.5 +8% VOTES0 #9 US Wiki Ots 51 / 1,000 EXPx9999 PROTOcustom client ENGINETFS 1.4.2 RANK PTS5.1 +100% VOTES0 #10 ES JustRL FreeTC 1530 31 / 250 EXPx2 PROTO15.30 ENGINECrystal Server RANK PTS5.0 +6% VOTES0 #11 PL Lubelski 15 / 1,000 EXP200 PROTO7.6 ENGINELubelskiOTS 2.56.0 RANK PTS4.9 -16% VOTES0 #12 PL ReWar 0 / 2,000 EXPcustom PROTO8.6 ENGINEOther RANK PTS4.6 +100% VOTES0 #13 US Halera 0 / 0 EXPStages PROTO10.98 ENGINETFS 1.4.2 RANK PTS4.4 -82% VOTES0 #14 PL Velesta 0 / 1,000 EXP20 PROTO8.0 ENGINETFS 1.4.2 RANK PTS4.4 -100% VOTES0 #15 US BerethaOnline 0 / 2,000 EXPStages PROTO15.0 ENGINETFS RANK PTS4.3 -62% VOTES0 #16 BR Turion Server 0 / 2,000 EXPx1 PROTO7.4 ENGINETurion 7.7 Project RANK PTS4.1 +65% VOTES0 #17 ES Farlia Global 2026 0 / 333 EXPx5 PROTO15.25 ENGINEFarliaServ 1.525 RANK PTS4.0 -100% VOTES0 #18 SE MortalisOT Custom 0 / 500 EXP100x -1.2x PROTO10.98 ENGINEMortalisOT V1 RANK PTS4.0 -100% VOTES0 #19 RU Oldavia | 8.60 0 / 0 EXPx9999 PROTO8.6 ENGINETFS 1.3 RANK PTS3.9 -97% VOTES0 #20 BR Rethoria OpenToday 7.4 Custom 5 / 0 EXPx10 PROTO10.98 ENGINEOther RANK PTS3.9 +100% VOTES0 #21 US Rommania 0 / 3,000 EXPstages, x10 PROTO7.4 ENGINETFS 0.4 RANK PTS3.7 -87% VOTES0 #22 MX Maeli 0 / 150 EXPx10 PROTO10.98 ENGINETFS 1.4.2 RANK PTS3.5 -39% VOTES0 #23 ES DarkDragon EXPx10 PROTO8.6 ENGINECanary RANK PTS0.0 0% VOTES0 #24 US MasterRunes EXPx10 PROTO15.20 ENGINECanary 3.x RANK PTS0.0 0% VOTES0
Top