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

Quest

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
Don't are working my script:
PHP:
function onUse(cid, item, frompos, item2, topos) 
	if item.uid == 9292 then 
 queststatus = getPlayerStorageValue(cid, 9292) 
	if queststatus == -1 then 
	   doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(2263) .. '.')  
	   doSendMagicEffect(topos, CONST_ME_CRAPS)
	   doSendMagicEffect(topos, CONST_ME_GIFT_WRAPS)
	   doPlayerAddItem(cid, 2263, 100) 
	   setPlayerStorageValue(cid, 9292, 1)
	if isPaladin(cid) then
	   doPlayerAddOutfit(cid, 150, 1)
	   doPlayerAddOutfit(cid, 150, 2)
	elseif isSorcerer(cid) then
	   doPlayerAddOutfit(cid, 145, 1)
	   doPlayerAddOutfit(cid, 145, 2)
	elseif isKnight(cid) then
	   doPlayerAddOutfit(cid, 151, 1)
	   doPlayerAddOutfit(cid, 151, 2)
	elseif isDruid(cid) then
	   doPlayerAddOutfit(cid, 140, 1)
	   doPlayerAddOutfit(cid, 140, 2)
   end
  end
 end
end
Tag:
<action itemuid="9292" script="rune_quest.lua"/>
 
Well, I don't work with that structure of scripts, but Seeing in my primary vision, doSendMagicEffect should be

Code:
doSendMagicEffect(topos,2)

why the 2, well, go to the global.lua file in your data folder, then you will see a lot of offtopics things, go onto const_me blablabla then you will find this

Code:
CONST_ME_POFF = [B][COLOR="Red"]2[/COLOR][/B]

I hope you fix it, in the night (in 5 hours) I will see this topic again, if no one has solved your doubt I will post a script, until then, c ya :*

P.S. BTW, if you wanna put both outfits in a row, put 3 instead of 1 and 2, 3 are the union of 1 and 2 (1+2 = 3)
 
Code:
function onUse(cid, item, frompos, item2, topos) 
local queststatus = getPlayerStorageValue(cid, 9292) 
	if item.uid == 9292 then 
		if queststatus == -1 then 
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemNameById(2263) .. '.')  
			doSendMagicEffect(topos, CONST_ME_CRAPS)
			doSendMagicEffect(topos, CONST_ME_GIFT_WRAPS)
			doPlayerAddItem(cid, 2263, 100) 
			setPlayerStorageValue(cid, 9292, 1)
			if isPaladin(cid) == TRUE then
				doPlayerAddOutfit(cid, 150, 3)
			elseif isSorcerer(cid) == TRUE then
				doPlayerAddOutfit(cid, 145, 3)
			elseif isKnight(cid) == TRUE then
				doPlayerAddOutfit(cid, 151, 3)
			elseif isDruid(cid) == TRUE then
				doPlayerAddOutfit(cid, 140, 3)
			end
		end
	end
	return TRUE
end

What about female outfits? (or male if those are female)
 
Back
Top