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

Aol nie działa

rafi47

New Member
Joined
May 1, 2013
Messages
8
Reaction score
0
Witam, aol na moim ots nie można kupić komendą "!aol" (skrypty brałem z każdego ots i cały czas to samo...) w konsoli nie wywala błędów.

Cały czas piszę że mam za mało cc. a mam full backpack.

Posiadam TFS 0.4 (LINUX)

Skrypt:
Code:
function onSay(cid, words, param)
if(not checkExhausted(cid, 669, 5)) then
	return true
end



if doPlayerRemoveMoney(cid, 10000) == TRUE then

doPlayerAddItem(cid, 2173, 1)

doPlayerSendTextMessage(cid, 19,"Kupiles aola.")

doSendMagicEffect(getPlayerPosition(cid), 19)

else

doPlayerSendCancel(cid, "Sorry, Nie masz tyle kasy. Aol kosztuje 1cc.")

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)

end



end

Edit: Potrzebuje zapytania do bazy danych na cast system.
 
Code:
function onSay(cid, words, param, channel)
if (getPlayerMoney(cid) >= 10000) then
doPlayerRemoveMoney(cid,10000)
doPlayerAddItem(cid,2173,1)
doPlayerSendTextMessage(cid,19,'Kupiles amulet of loss!')
doSendMagicEffect(getCreaturePosition(cid),22)
else
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_RED,"Niestety, nie masz wystarczajacej ilosci pieniedzy.")
doSendMagicEffect(getCreaturePosition(cid),2)
end
return true
end
 
Back
Top