• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

look system [shift-right click]

Calon

Experienced Member
Joined
Feb 6, 2009
Messages
1,070
Reaction score
21
i cant look for any items in my ot how i can solve this it was working before i re open ot
rep ++ thanks
 
@ damadgerz
i just used onlook script that for frags
in the same time could u gimme script for promotion (talkaction?)
thanks
 
ye if u used mine as i told you write return true before last end.
promotion
LUA:
local cost = 10000
function onSay(cid, words, param, channel)
   if getPlayerMoney(cid) < cost then
       doPlayerSendCancel(cid,"You dont have enogh money.")
   end
   if getPlayerPromotionLevel(cid) == 1 then
        doPlayerSendCancel(cid,"You are already promoted")
   end
       setPlayerPromotionLevel(cid,1)
       doSendAnimatedText(getThingPos(cid),"Promoted!",TEXTCOLOR_GREEN)
       doSendMagicEffect(getThingPos(cid),49)
	   doPlayerRemoveMoney(cid,cost)
   return true
end
 
Last edited:
Hmm try this:
LUA:
local cost = 10000
function onSay(cid, words, param, channel)
   if (getPlayerMoney(cid) < cost) then
       doPlayerSendCancel(cid,"You dont have enogh money.")
   elseif (getPlayerPromotionLevel(cid) == 1) then
        doPlayerSendCancel(cid,"You are already promoted")
   else
		setPlayerPromotionLevel(cid,1)
       doSendAnimatedText(getThingPos(cid),"Promoted!",TEXTCOLOR_GREEN)
       doSendMagicEffect(getThingPos(cid),49)
	   doPlayerRemoveMoney(cid,cost)
   end
   return true
end
 
Hmm try this:
LUA:
local cost = 10000
function onSay(cid, words, param, channel)
   if (getPlayerMoney(cid) < cost) then
       doPlayerSendCancel(cid,"You dont have enogh money.")
   elseif (getPlayerPromotionLevel(cid) == 1) then
        doPlayerSendCancel(cid,"You are already promoted")
   else
		setPlayerPromotionLevel(cid,1)
       doSendAnimatedText(getThingPos(cid),"Promoted!",TEXTCOLOR_GREEN)
       doSendMagicEffect(getThingPos(cid),49)
	   doPlayerRemoveMoney(cid,cost)
   end
   return true
end

and you have done what o.0
 
ye if u used mine as i told you write return true before last end.
promotion
LUA:
local cost = 10000
function onSay(cid, words, param, channel)
   if getPlayerMoney(cid) < cost then
       doPlayerSendCancel(cid,"You dont have enogh money.")
   end
   if getPlayerPromotionLevel(cid) == 1 then
        doPlayerSendCancel(cid,"You are already promoted")
   end
       setPlayerPromotionLevel(cid,1)
       doSendAnimatedText(getThingPos(cid),"Promoted!",TEXTCOLOR_GREEN)
       doSendMagicEffect(getThingPos(cid),49)
	   doPlayerRemoveMoney(cid,cost)
   return true
end

stop posting errors and post your script here or the piece of code that is givin error
It is the one i made earlier on this post but i think he copyed it wrong.
 
here is my scrip dude
Code:
local cost = 10000
function onSay(cid, words, param, channel)
   if getPlayerMoney(cid) < cost then
       doPlayerSendCancel(cid,"You dont have enogh money.")
   end
   if getPlayerPromotionLevel(cid) == 1 then
        doPlayerSendCancel(cid,"You are already promoted")
   end
       setPlayerPromotionLevel(cid,1)
       doSendAnimatedText(getThingPos(cid),"Promoted!",TEXTCOLOR_GREEN)
       doSendMagicEffect(getThingPos(cid),49)
	   doPlayerRemoveMoney(cid,cost)
   return true
end
line 13
 
LUA:
local costi = 10000
function onSay(cid, words, param, channel)
   if getPlayerPromotionLevel(cid) < 1 then
		if doPlayerRemoveMoney(cid, 60000) == TRUE then
		        setPlayerPromotionLevel(cid,1)
				doSendAnimatedText(getThingPos(cid),"Promoted!",TEXTCOLOR_GREEN)
				doSendMagicEffect(getThingPos(cid),49)
		else
			doPlayerSendCancel(cid,"You dont have enogh money, you need ".. costi .." money for promotion.")
		end
	else
	doPlayerSendCancel(cid,"You are already promoted")
	end
return true
end
 
hey sonical it is just a question, can you see an error in my script as i rlly cant find one, i think all ends are there right? :(
 
here is my scrip dude
Code:
local cost = 10000
function onSay(cid, words, param, channel)
   if getPlayerMoney(cid) < cost then
       doPlayerSendCancel(cid,"You dont have enogh money.")
   end
   if getPlayerPromotionLevel(cid) == 1 then
        doPlayerSendCancel(cid,"You are already promoted")
   end
       setPlayerPromotionLevel(cid,1)
       doSendAnimatedText(getThingPos(cid),"Promoted!",TEXTCOLOR_GREEN)
       doSendMagicEffect(getThingPos(cid),49)
	   doPlayerRemoveMoney(cid,cost)
   return true
end
line 13

hey sonical it is just a question, can you see an error in my script as i rlly cant find one, i think all ends are there right? :(
Lol, I thought there was something wrong in this script and I rewrote it... -_-
 
Back
Top