• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

exp ring - przeobic skrypt

konolo22

Banned User
Joined
Jan 18, 2013
Messages
86
Reaction score
1
jak przerobić poniższy skrypt na ring..
niestety on dodaje exp stage nie ważne czy jest założony czy też nie...

1. jak zrobić by działał wyłącznie po założeniu ? dodam do movements.. ale jak kod zmienić aby bez założenia nie działał?

2. jak zrobić by ring znikał gdy upłynie jego czas (obecnie jest że jak upłynie czas to sie ładuje crystal coinsami)

actions:
XML:
<action itemid="6300" event="script" value="YOURSCRIPTNAME.lua"/>
<action itemid="6301" event="script" value="YOURSECONDSCRIPTNAME.lua"/>

1-szy lua:
Lua:
local config = { 
    rate = 1.5,
} 

function onUse(cid, item, fromPosition, itemEx, toPosition)
if doPlayerRemoveMoney(cid, 20000) then
itemEx=itemid == 6300
doCreatureSay(cid, "Your extra experience rate has been activated! It is now: " .. config.rate .. "x doubled your former experience rate.", TALKTYPE_ORANGE_1, true, cid) 
            doPlayerSetExperienceRate(cid, config.rate) 
            doTransformItem(item.uid,6301)
else
				doCreatureSay(cid, "You don't have enough money to Start Other exp condition !", TALKTYPE_ORANGE_1, true, cid)
end
			return true
		end
2-gi lua:
Lua:
function onUse(cid, item, slot) 
    if(item.itemid == 6301) then 
        doPlayerSetExperienceRate(cid, 1.0) 
           doCreatureSay(cid, "Your extra experience rate has ended.", 

TALKTYPE_ORANGE_1,true,cid) 
            doTransformItem(item.uid,6300) 
    end 
end
 
Back
Top