What's new

Runa daj?ca mlvl

looker3

User
Joined
Jul 16, 2010
Messages
43
Reaction score
1
Chcia? bym, zrobi? Run? kt?ra daje mlvl tylko nie wiem, czy jest taka funkcja :/
 

sebo554

Active User
Joined
May 17, 2008
Messages
72
Reaction score
0
Odp: Runa daj?ca mlvl

Prosz? bardzo

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= 10 then
doCreatureSay(cid, "You Gained 1000 Experience!", TALKTYPE_ORANGE_1)
doPlayerAddmagiclevel(cid, 1000) << Ile daje Expa
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doRemoveItem(item.uid)
return TRUE
else
doCreatureSay(cid, "You must be level 10 or above to use this ticket.", ALKTYPE_ORANGE_1)
end
end
 

Jastro

Senior User
Joined
Aug 18, 2009
Messages
727
Reaction score
101
Odp: Runa daj?ca mlvl

@UP
Wchodzisz w data/actions/scripts/ i tam tworzysz plik o nazwie mr.lua, po czym uzupe?niasz skryptem z g?ry.
Nast?pnie dopisujemy do actions.xml nast?puj?c? linijk?:
Code:
<action itemid="ID RUNKI" script="mr.lua" />

Pozdrawiam, Jastro.
 

looker3

User
Joined
Jul 16, 2010
Messages
43
Reaction score
1
Odp: Runa daj?ca mlvl

Nie dzia?a, ale dzi?kuje za ch?ci :p Mo?e pod 7.6 nie dzia?a ten skrypt xd Ma kto? jakie? propozycje ? xD
 
Last edited:
Top