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

[MOD] script

Fu Manchu

Sepultra™
Joined
Jan 28, 2011
Messages
439
Reaction score
9
XML:
function onSay(cid, words, param
	if getPlayerVipDays(cid >= 1) then
	   doPlayerAddItem(cid, 2173, 1) ;
	   doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've bought an amulet of loss!") ;
	else
		doPlayerRemoveMoney(cid, 10000) == true then
		doPlayerAddItem(cid, 2173, 1) ; 
		doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_BLUE) ; 
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've bought an amulet of loss!") ; 
	else
		doSendMagicEffect(getThingPosition(cid), CONST_ME_POFF) ; 
		return doPlayerSendCancel(cid, "You don't have enough money.") ; 
	end ; return true ; 
end ;

I need to turn this script so that VIP member can get a free aol IF they do not have one on already. My vip dosnt use a storage it uses days per acc. thx guys :/
 
Code:
function onSay(cid, words, param
	if getPlayerPremDays(cid >= 1) then
	   doPlayerAddItem(cid, 2173, 1) ;
	   doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have received a amulet of loss") ;
	else
		doPlayerAddItem(cid, 2173, 1) ; 
		doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_BLUE) ; 
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have received a amulet of loss") ; 
	else
		doSendMagicEffect(getThingPosition(cid), CONST_ME_POFF) ; 
		return doPlayerSendCancel(cid, "You don't have enough money.") ; 
	end ; return true ; 
end ;
 
I need it to charge the non vip people. That why i left doPlayerRemoveMoney.... lol From what it looks like that script wont do that.. i could be wrong.

oh btw if your reading this and dont know the answer feel free to bump the post.
 
Last edited:
Code:
function onSay(cid, words, param)
    if getPlayerVipDays(cid) >= 1 then
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've been granted an amulet of loss gratis ViP!") ;
    elseif doPlayerRemoveMoney(cid, 10000) then
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've bought an amulet of loss!") ; 
    else
        doSendMagicEffect(getThingPosition(cid), CONST_ME_POFF) ; 
        return doPlayerSendCancel(cid, "You don't have enough money.") ; 
    end ; 
    doPlayerAddItem(cid, 2173, 1) ;
    doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_BLUE) ; 
    return true ; 
end ;

you may want to add a check so players with one equipped already don't get one.
 

Similar threads

Back
Top