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

Donate Island Bug Help! Rep++

freak15

Professional Hoster
Joined
Dec 31, 2008
Messages
356
Reaction score
2
Location
Sweden
Hello Again ;:) I need help whith This i gona show you some pictures.:P

skk.png


Than We Got The scripts Actions.xml
HTML:
<action uniqueid="50000" script="donate island/quest.lua"/>


Than We Got script! \data\actions\scripts\donate island
HTML:
-- Script by Ates
function onUse(cid, item, fromPosition, itemEx, toPosition)
local monster = "demon"
local pos1 = {x=32104, y=33267, z=12}
local pos2 = {x=32107, y=33272, z=12}
local pos3 = {x=32102, y=33275, z=12}
local pos4 = {x=32108, y=33276, z=12}
local pos5 = {x=32104, y=33286, z=12}
local pos6 = {x=32106, y=33286, z=12}
local id = 1419

if item.itemid == id and item.uid == 50000 then
if isPlayer(cid) == TRUE then
if queststatus == (getPlayerStorageValue(cid, 55000)
	 doSummonCreature(monster, pos1)
	 	 doSummonCreature(monster, pos2)
		 	 doSummonCreature(monster, pos3)
			 	 doSummonCreature(monster, pos4)
				 	 doSummonCreature(monster, pos5)
					 	 doSummonCreature(monster, pos6)
						     setPlayerStorageValue(cid, 55000) -1
else
if getPlayerStorageValue(cid, 55000) == -1 then
     doCreatureSay(cid, "You cannot open it more.", TALKTYPE_ORANGE_1)
	 end
	 return 1
end
end

Thankz If U Help Me I Give Rep++
 
it should be
LUA:
if queststatus == getPlayerStorageValue(cid, 55000)

not (getPlayerStorage... xP


---edit---
i think there should be then
LUA:
if queststatus == getPlayerStorageValue(cid, 55000) then
	 doSummonCreature(monster, pos1)
	 doSummonCreature(monster, pos2)
	 doSummonCreature(monster, pos3)
	 doSummonCreature(monster, pos4)
	 doSummonCreature(monster, pos5)
	 doSummonCreature(monster, pos6)
	 setPlayerStorageValue(cid, 55000) -1
 
Back
Top