• 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]NPC addons seller and NPC loot seller PLEASE!

lord azteck

New Member
Joined
Jan 4, 2009
Messages
221
Reaction score
3
As the title who have NPC Addon Seller ( Addons x Items)
for 0.3.6pl1

And NPC loot seller
same for 0.3.6pl1

THANKS!:$:peace:
 
Here is also the reward script you requested by pm:

Add this to talkactions.xml:
PHP:
<talkaction log="yes" words="!reward" event="script" value="reward.lua"/>

And this should be the reward.lua:
LUA:
-- Script made by lunarians.

local item = 2160
local quantity = 100
function onSay(cid, words)

	if 	getPlayerStorageValue(cid, 2170100) == -1 then
		if getPlayerLevel(cid) >= 100 then
			doPlayerAddItem(cid, item, quantity)
			setPlayerStorageValue(cid, 2170100, 1)
		elseif getPlayerLevel(cid) < 100 then
			doPlayerSendCancel(cid, "You need to be level 100 in order to get this reward.")
		end
	else
		doPlayerSendCancel(cid, "You already had this reward.")
	end

	return true
end
This should give players of lvl 100+ a one time use of the command !reward to gain 100cc.

If i missed something can someone please correct it?, I suck at lua

Edit: I've just changed a small thing, forgot to add "return true", thanks for the help Sneaky Shadow ;)
 
Last edited:
Back
Top