God Nixez
Member
- Joined
- Sep 20, 2009
- Messages
- 410
- Reaction score
- 17
The ring which is used is Death ring
First copy this 2 codes in your action.xml "usually Data>actions"
Green is the item id choose whatever you want
I would like you to notice first script.lua must be different than the second script.lua
Now when you finish adding the codes above add this 2 scripts each one in different.lua
Red is the cash in gold which will be taken when u use the item
Green is the item id choose what you want
Green is the item id's
Now items.xml part
add those codes
Orange is the item name you can change it for what ever you want
Green is the item id you can choose what u want
Now images
If you have money and click on it this happends
When you click other time to disable it
if you click while not having the cash u set up
Well that's all
Credits goes to me ;p
id's 6300 and 6301 can be changed for what you want
I guess that's the first time i post here on otland, Don't flame please.
patch v1
http://otland.net/f81/exp-ring-works-click-images-115311/index3.html#post1161872
![Death_Ring.gif](/proxy.php?image=http%3A%2F%2Fimages.wikia.com%2Ftibia%2Fen%2Fimages%2Fd%2Fd1%2FDeath_Ring.gif&hash=45d78b5decddd37e013706172bc8f84d)
First copy this 2 codes in your action.xml "usually Data>actions"
Code:
<action itemid="[COLOR="lime"]6300[/COLOR]" event="script" value="YOURSCRIPTNAME.lua"/>
Code:
<action itemid="[COLOR="lime"]6301[/COLOR]" event="script" value="YOURSECONDSCRIPTNAME.lua"/>
Green is the item id choose whatever you want
I would like you to notice first script.lua must be different than the second script.lua
Now when you finish adding the codes above add this 2 scripts each one in different.lua
Code:
local config = {
rate = 1.5,
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if doPlayerRemoveMoney(cid, [COLOR="red"]20000[/COLOR]) then
itemEx=itemid == [COLOR="lime"]6300[/COLOR]
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,[COLOR="lime"]6301[/COLOR])
else
doCreatureSay(cid, "You don't have enough money to Start Other exp condition !", TALKTYPE_ORANGE_1, true, cid)
end
return true
end
Red is the cash in gold which will be taken when u use the item
Green is the item id choose what you want
Code:
function onUse(cid, item, slot)
if(item.itemid == [COLOR="lime"]6301[/COLOR]) then
doPlayerSetExperienceRate(cid, 1.0)
doCreatureSay(cid, "Your extra experience rate has ended.",
TALKTYPE_ORANGE_1,true,cid)
doTransformItem(item.uid,[COLOR="lime"]6300[/COLOR])
end
end
Now items.xml part
add those codes
Code:
<item id="[COLOR="lime"]6300[/COLOR]" article="a" name="[COLOR="orange"]disabled exp ring[/COLOR]">
<attribute key="weight" value="80" />
<attribute key="slotType" value="ring" />
<attribute key="transformEquipTo" value="6301" />
<attribute key="stopduration" value="1" />
<attribute key="showduration" value="0" />
</item>
<item id="[COLOR="lime"]6301[/COLOR]" article="a" name="[COLOR="orange"]enabled exp ring[/COLOR]">
<attribute key="weight" value="80" />
<attribute key="slotType" value="ring" />
<attribute key="decayTo" value="0" />
<attribute key="transformDeEquipTo" value="6300" />
<attribute key="duration" value="480" />
<attribute key="armor" value="1" />
<attribute key="showduration" value="0" />
</item>
Orange is the item name you can change it for what ever you want
Green is the item id you can choose what u want
Now images
If you have money and click on it this happends
![25que6f.png](/proxy.php?image=http%3A%2F%2Fi53.tinypic.com%2F25que6f.png&hash=e32583c47762b1696bf56c24c717057d)
When you click other time to disable it
![5mwwf6.png](/proxy.php?image=http%3A%2F%2Fi53.tinypic.com%2F5mwwf6.png&hash=ada93fdbec749de3ed7786eaf39f7aaf)
if you click while not having the cash u set up
![308bh35.png](/proxy.php?image=http%3A%2F%2Fi54.tinypic.com%2F308bh35.png&hash=c9a28bdd3afadb191aa2ef58836c0d79)
Well that's all
Credits goes to me ;p
id's 6300 and 6301 can be changed for what you want
I guess that's the first time i post here on otland, Don't flame please.
patch v1
http://otland.net/f81/exp-ring-works-click-images-115311/index3.html#post1161872
Last edited: