• 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!

[Request] Addon Scroll Fast!!

Zonet

Web Developer
Joined
Sep 1, 2008
Messages
4,393
Reaction score
52
Location
Tibia VS RL-life, guess whos back?
Hello dear scripters :p

I need a addon scroll script!

also it's not for me it's to my friends which he's server sells addon so i want to do it easy for him with a addon scroll

I want.


a addon scroll for first addon..
a addon scroll for second addon
and a addon scroll for both addon.

I would be very thanksful if someone helped me


Thank you.:)
 
Well, i've made my own script, here is it. FIRST TIME I SCRIPT! xD


doPlayerAddAddons(cid, 3) if 3 then player get both addon if 1 the first and if 2 the second addon.
If you want a player can use this scroll more than one time dont change it..
If one time.
change setPlayerStorageValue(cid,1800,20)
to: setPlayerStorageValue(cid,1800,10)



function onUse(cid, item, fromPosition, itemEx, toPosition)

if getPlayerStorageValue(cid,1800) == 10 then
doCreatureSay(cid, "You already got the addons", TALKTYPE_ORANGE_1)

else if getPlayerLevel(cid) >= 10 then
doCreatureSay(cid, "You received the first addon and the second addon", TALKTYPE_ORANGE_1)
doPlayerAddAddons(cid, 3)
doSendMagicEffect(fromPosition, 37)
doRemoveItem(item.uid)
setPlayerStorageValue(cid,1800,20)
return TRUE
else
doCreatureSay(cid, "You must be level 10 to get the second addon", TALKTYPE_ORANGE_1)
end
end
end

In Actions.xml
<action itemid="6527" script="addon2.lua"/>

"6527" which id you want the scroll also which item.
 
Back
Top