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

Addon Quest

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
Don't are working.
The server don't is TFS.

Script:
PHP:
--Nightmare_addon by BomBa
function onUse(cid, item, frompos, item2, topos)
		if item.uid == 3090 then
                if doPlayerRemoveItem(cid,5791,1) == 0 or getPlayerStorageValue(cid,3090) == -1 or doPlayerRemoveItem(cid,2160,20) == 0 then
            	if getPlayerSex(cid) == 0 then
	doPlayerAddAddon(cid, 269, 2)
 local queststatus = getPlayerStorageValue(cid,3090) 
		if queststatus < 1 then
        setPlayerStorageValue(cid, 3090, 1)
	doPlayerAddItem(cid,6391,1)
else
	doPlayerAddAddon(cid, 268, 2)
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found an addon.') 
   end
else 
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") 
   end 
  end
 end
end
 
Last edited:
What isn't working and what Is working?

Don't are working.
The server don't is TFS.

Script:
Code:
--Nightmare_addon by BomBa
function onUse(cid, item, frompos, item2, topos)
		if item.uid == 3090 then
                if doPlayerRemoveItem(cid,5791,1) == 0 or getPlayerStorageValue(cid,3090) == -1 or doPlayerRemoveItem(cid,2160,20) == 0 then
            	if getPlayerSex(cid) == 0 then
	[B]doPlayerAddAddon(cid, 269, 2)[/B]
 local queststatus = getPlayerStorageValue(cid,3090) 
		if queststatus < 1 then
        setPlayerStorageValue(cid, 3090, 1)
	doPlayerAddItem(cid,6391,1)
else
	[B]doPlayerAddAddon(cid, 268, 2)[/B]
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found an addon.') 
   end
else 
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") 
   end 
  end
 end
end
try to edit the bolt ones with: "doPlayerAddOutfit(cid, 269, 2)"
 
What?! You found Empty in chest??? :o :o


Just re-tabbed, might be easier to edit it now xD
PHP:
--Nightmare_addon by BomBa 
function onUse(cid, item, frompos, item2, topos) 
	if item.uid == 3090 then 
		if doPlayerRemoveItem(cid, 5791, 1) == 0 or getPlayerStorageValue(cid,3090) == -1 or doPlayerRemoveItem(cid,2160,20) == 0 then 
			if getPlayerSex(cid) == 0 then 
				doPlayerAddAddon(cid, 269, 2) 
				local queststatus = getPlayerStorageValue(cid,3090)  
				if queststatus < 1 then 
					setPlayerStorageValue(cid, 3090, 1) 
					doPlayerAddItem(cid,6391,1) 
				else 
					doPlayerAddAddon(cid, 268, 2) 
					doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found an addon.')  
				end 
			else  
				doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")  
			end  
		end 
	end 
	return TRUE
end
 
Back
Top