[creaturevents]Extra exp
Strona 1 z 1
[creaturevents]Extra exp
Skrypt pochodzi z silnika db hayate. Dodaje on expa dla pacc oraz odejmuje dla osób bez pacc.
W creaturescript/creaturescript.xml wklepujemy:
W creaturescript/creaturescript.xml wklepujemy:
- Kod:
<event type="login" name="extraexp" event="script" value="extraexp.lua"/>
- Kod:
registerCreatureEvent(cid, "extraexp")
- Kod:
function onLogin(cid)
if isPremium(cid) == TRUE and getPlayerStorageValue(cid, 12345) == 0 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid)+15)
setPlayerStorageValue(cid, 12345, 1)
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, 12345) == 1 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid)-15)
setPlayerStorageValue(cid, 12345, 0)
end
return TRUE
end
darkes- Uploader
- Liczba postów : 27
Join date : 13/11/2012
Strona 1 z 1
Permissions in this forum:
Nie możesz odpowiadać w tematach