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

[help]mod vip..!

LordiN

New Member
Joined
Aug 11, 2007
Messages
45
Reaction score
0
Hello,
please iam need help for script [MOD]VIP

Script:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Verify VIP" version="1.0" author="LordiN" contact="otland.net" enabled="yes">
<config name="vips_config"><![CDATA[
config = {
playerPos = getCreaturePosition(cid),
pos = {x = 32360, y = 31782, z = 7}
}
]]></config>
<event type="login" name="VIP" event="script"><![CDATA[
domodlib('vips_config')

function onLogin(cid)
if isVip(cid) == TRUE then
doSendAnimatedText(config.playerPos, 'VIP!', 210)
doPlayerSetExtraExpRate(cid, 5)
end
if isVip(cid) == FALSE then
doSendAnimatedText(config.playerPos, 'FREE!', TEXTCOLOR_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Adquira sua VIP ja !")
doPlayerSetExtraExpRate(cid, 0)
end
if haveVipDays(cid) == FALSE then
if isVip(cid) == TRUE then
db.executeQuery("UPDATE `players` SET `town_id` = 2, `posx` = 32360, `posy` = 31782, `posz` = 7 WHERE `players`.`account_id` = ".. getAccount(cid) ..";")
db.executeQuery("UPDATE `accounts` SET `vip` = '0' WHERE `accounts`.`id` = ".. getAccount(cid) ..";")
doTeleportThing(cid, config.pos)
doSendMagicEffect(config.pos, 10)
getPlayerTown(cid, 2)
doSendAnimatedText(config.pos, 'FREE!', TEXTCOLOR_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Sua VIP expirou !")
doPlayerSetExtraExpRate(cid, 0)
end
end
]]></event>
</mod>

NOT WORK's..

Please Fixx..;D

Thanks,
LordiN
 
Hmmmmm....

UPDATE SCRIPT:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Verify VIP" version="1.0" author="LordiN" contact="otland.net" enabled="yes">
<config name="vips_config"><![CDATA[
config = {
pos = {x = 32360, y = 31782, z = 7}
}
]]></config>
<event type="login" name="VIP" event="script"><![CDATA[
domodlib('vips_config')
function onLogin(cid)
local playerPos = getCreaturePosition(cid)
if isVip(cid) == TRUE then
doSendAnimatedText(playerPos, 'VIP!', 210)
doPlayerSetExtraExpRate(cid, 5)
end
if isVip(cid) == FALSE then
doSendAnimatedText(playerPos, 'FREE!', TEXTCOLOR_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Adquira sua VIP ja !")
doPlayerSetExtraExpRate(cid, 0)
end
if haveVipDays(cid) == FALSE then
if isVip(cid) == TRUE then
db.executeQuery("UPDATE `players` SET `town_id` = 2, `posx` = 32360, `posy` = 31782, `posz` = 7 WHERE `players`.`account_id` = ".. getAccount(cid) ..";")
db.executeQuery("UPDATE `accounts` SET `vip` = '0' WHERE `accounts`.`id` = ".. getAccount(cid) ..";")
doTeleportThing(cid, config.pos)
doSendMagicEffect(config.pos, 10)
getPlayerTown(cid, 2)
doSendAnimatedText(config.pos, 'FREE!', TEXTCOLOR_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Sua VIP expirou !")
doPlayerSetExtraExpRate(cid, 0)
end
end
end
]]></event>
</mod>

ERROR NOW:
[07/09/2009 23:31:24] Testeet has logged in.

[07/09/2009 23:31:24] Lua Script Error: [CreatureScript Interface]
[07/09/2009 23:31:24] buffer:eek:nLogin

[07/09/2009 23:31:24] [string "loadBuffer"]:4: attempt to call global 'isVip' (a nil value)
[07/09/2009 23:31:24] stack traceback:
[07/09/2009 23:31:25] [string "loadBuffer"]:4: in function <[string "loadBuffer"]:2>
[07/09/2009 23:31:25] Testeet has logged out.

PS: Character Not LOGIN !

PLEASE HEEEELP...!

Thankz,
LordiN
 
Hmmm, Iam Fixed

Last UPDATE 100% Work's, 0.3.5:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Verify VIP" version="1.0" author="LordiN" contact="otland.net" enabled="yes">
<config name="vips_config"><![CDATA[
config = {
pos = {x = 32360, y = 31782, z = 7}
}
]]></config>
<event type="login" name="VIP" event="script"><![CDATA[
domodlib('vips_config')
function onLogin(cid)
local playerPos = getCreaturePosition(cid)
if isVip(cid) == TRUE then
doSendAnimatedText(playerPos, 'VIP!', 210)
doPlayerSetExperienceRate(cid, getExperienceStage(cid)+2)
end
if isVip(cid) == FALSE then
doSendAnimatedText(playerPos, 'FREE!', TEXTCOLOR_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Adquira sua VIP ja !")
doPlayerSetExperienceRate(cid, getExperienceStage(cid)+0)
end
if haveVipDays(cid) == FALSE then
if isVip(cid) == TRUE then
db.executeQuery("UPDATE `players` SET `town_id` = 2, `posx` = 32360, `posy` = 31782, `posz` = 7 WHERE `players`.`account_id` = ".. getPlayerAccountId(cid) ..";")
db.executeQuery("UPDATE `accounts` SET `vip` = '0' WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";")
doTeleportThing(cid, config.pos)
doSendMagicEffect(config.pos, 10)
getPlayerTown(cid, 2)
doSendAnimatedText(config.pos, 'FREE!', TEXTCOLOR_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Sua VIP expirou !")
doPlayerSetExperienceRate(cid, getExperienceStage(cid)+0)
end
end
return TRUE
end
]]></event>
</mod>

@Up, ^^, old not have, now have (Functions VIP!)..^^

Thanks for Reply,
LordiN
 
Back
Top