What's new

Skrypt

Status
Not open for further replies.

imperia645

Advanced User
Joined
Dec 5, 2009
Messages
351
Reaction score
2
Witam poszukuje skrypta na automatyczna promotion od 20 lvl za darmo ze jak ktos wbiije 20 lvl to automatycznie za darmo daje mu promotion.

Wiem ze napisalem zlym dziale. wiec prosze o przeniesienia posta.
 

Unass

Active User
Joined
Jul 21, 2010
Messages
123
Reaction score
22
Odp: Skrypt

data/creaturescripts/scripts/promotion.lua
function onAdvance(cid, skill, oldLevel, newLevel)
if SKILL == 8 and newLevel >= 20 and getPlayerStorageValue(cid, 7329) ~= 2 then
doPlayerSetPromotionLevel(cid, 1)
setPlayerStorageValue(cid, 7329, 2)
end
return true
end

data/creaturescripts/scripts/login.lua
registerCreatureEvent(cid, "promotion")

data/creaturescripts/creaturescripts.xml
<event type="advance" name="promotion" event="script" value="promotion.lua"/>
 
Status
Not open for further replies.
Top