• 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] Click on an item - get all addons

andre66

Banned User
Joined
Oct 27, 2008
Messages
295
Reaction score
0
Hello, i want an script, when you click on an item ( paper ex) You get all addons!

Someone who has ?

fast reply +rep
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	doPlayerAddOutfit(cid, 156, 3)
	doPlayerAddOutfit(cid, 152, 3)
	doPlayerAddOutfit(cid, 147, 3)        
	doPlayerAddOutfit(cid, 157, 3)
        doPlayerAddOutfit(cid, 153, 3)
	doPlayerAddOutfit(cid, 143, 3)
	doPlayerAddOutfit(cid, 278, 3)
	doPlayerAddOutfit(cid, 279, 3)
	doPlayerAddOutfit(cid, 128, 3)
        doPlayerAddOutfit(cid, 136, 3)
	doPlayerAddOutfit(cid, 288, 3)
        doPlayerAddOutfit(cid, 289, 3)
	doPlayerAddOutfit(cid, 144, 3)
	doPlayerAddOutfit(cid, 148, 3)
	doPlayerAddOutfit(cid, 129, 3)
	doPlayerAddOutfit(cid, 137, 3)
	doPlayerAddOutfit(cid, 273, 3)
	doPlayerAddOutfit(cid, 270, 3)
	doPlayerAddOutfit(cid, 131, 3)
	doPlayerAddOutfit(cid, 139, 3)
	doPlayerAddOutfit(cid, 130, 3)
	doPlayerAddOutfit(cid, 138, 3)
	doPlayerAddOutfit(cid, 268, 3)
	doPlayerAddOutfit(cid, 269, 3)
	doPlayerAddOutfit(cid, 132, 3)
	doPlayerAddOutfit(cid, 140, 3)
	doPlayerAddOutfit(cid, 251, 3)
	doPlayerAddOutfit(cid, 252, 3)
	doPlayerAddOutfit(cid, 146, 3)
	doPlayerAddOutfit(cid, 150, 3)
	doPlayerAddOutfit(cid, 151, 3)
	doPlayerAddOutfit(cid, 155, 3)
	doPlayerAddOutfit(cid, 154, 3)
	doPlayerAddOutfit(cid, 158, 3)
	doPlayerAddOutfit(cid, 133, 3)
	doPlayerAddOutfit(cid, 141, 3)
	doPlayerAddOutfit(cid, 142, 3)
	doPlayerAddOutfit(cid, 134, 3)
	doPlayerAddOutfit(cid, 145, 3)
	doPlayerAddOutfit(cid, 149, 3)
	doPlayerAddOutfit(cid, 324, 3)
	doPlayerAddOutfit(cid, 325, 3)
	doSendMagicEffect(fromPosition, 19)        
	return TRUE
end
 
@ Kekox, what a long script =p

You can use doPlayerAddAddons(cid, addon), which is probably in both TFS 0.2 & 0.3

So this script could look like this
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	doPlayerAddAddons(cid, 1)
	doPlayerAddAddons(cid, 2)
	doSendMagicEffect(fromPosition, 19)
	return TRUE
end
 
anywhere in actions.. you create file in actions/scripts somewhere, and next declare it in actions.xml so it will work. Set whatever you want itemid/actionid/uniqueid/
 
how can I remove addons from players? like.. if i have an addon, I want to completely remove from the character.

Can I do this from the database? (If so, how? I can't find it) or do i have to do it with an script? which one? Thanks!
 
Back
Top