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

Give Addons /addon 152,3 [need]

Nastix

tyskiots.pl coming soon
Joined
Mar 21, 2009
Messages
29
Reaction score
1
Hi guys. I need command for give addon (for example: CM's says: /addon Nastix,152,3 for TFS 0.3.5PL1 (CipSoft Project 0.3.5).
 
Not Tested Unfortunately

First it checks for notations.
I saw this idea in another script, thought it was nice.

Lua:
function onSay(cid, words, param, channel)  
        if(param ~= "")then
		local params = list({"name", "outfit", "addon"}, string.explode(param, ",", 3))
		local player = getPlayerByName(params["name"])
		if(isPlayer(player) == true)then
			local addon = (params["outfit", "addon"])
			if (getNotationsCount(getPlayerAccount(player)) < 1) then
				doPlayerAddOutfit(player, addons)
				doPlayerSendTextMessage(player, MESSAGE_STATUS_CONSOLE_ORANGE, "You have recieved a new outfit from ".. getCreatureName(cid) ..".")
				doSendMagicEffect(getCreaturePosition(player), CONST_ME_GIFT_WRAPS)
			else
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "This player has to many notations to recieve this outfit.")
			end
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "This player is not online.")
		end
	else
	        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Command requires param.")
        end
        return true
end
 
Last edited:
[06/12/2009 08:24:46] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/addons.lua)
[06/12/2009 08:24:46] data/talkactions/scripts/addons.lua:6: ']' expected near ','

= //
 
Back
Top