Procure mais uma vez, só que desta vez na pasta mods e então é só deletar o arquivo safadinho que se esconde de você.
5
1.6k
09 de julho de 2012 às 15:15
Editado Julho 9 por Oneshot
info
Grupo: Cavaleiro
Registrado: 21/11/11
Posts: 160
Reputação: +14

09 de julho de 2012 às 15:24
cara brigao. mais uma duvida, eu axei a tag de gasta 3dias de premium como troco pra 3dias de vip?
script :
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Change gender command" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<description>
This mod will add new command for players - !changender.
Players will be able to change gender, cost can be configured.
</description>
<config name="changender_config"><![CDATA[
config = {
costPremiumDays = 3
}
]]></config>
<talkaction words="!changender" event="buffer"><![CDATA[
domodlib('changender_config')
if(getPlayerSex(cid) >= 2) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot change your gender.")
return
end
if(getPlayerPremiumDays(cid) < config.costPremiumDays) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, not enough premium time - changing gender costs " .. config.costPremiumDays .. " premium days.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return
end
if(getPlayerPremiumDays(cid) < 65535) then
doPlayerAddPremiumDays(cid, -config.costPremiumDays)
end
doPlayerSetSex(cid, getPlayerSex(cid) == PLAYERSEX_FEMALE and PLAYERSEX_MALE or PLAYERSEX_FEMALE)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have changed your gender and lost " .. config.costPremiumDays .. " days of premium time.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED)
]]></talkaction>
</mod>
info
Grupo: Visconde
Registrado: 11/08/10
Posts: 477
Reputação: +175
Gênero: Masculino

09 de julho de 2012 às 19:23
vc tem q postar o seu vip system, pra gnt saber como remover dias vip, pq isso varia de sistema pra sistema
info
Grupo: Cavaleiro
Registrado: 21/11/11
Posts: 160
Reputação: +14

09 de julho de 2012 às 19:34
vip system :
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config={
removeOnUse = "yes" -- remover quando usar ("yes" or "no")
}
local days = 30 -- coloque os dias que serão a VIP!
local daysvalue = days * 24 * 60 * 60
local storageplayer = getPlayerStorageValue(cid, 13500)
local timenow = os.time()
if getPlayerStorageValue(cid, 13500) - os.time() <= 0 then
time = timenow + daysvalue
else
time = storageplayer + daysvalue
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.")
setPlayerStorageValue(cid, 13500, time)
local quantity = math.floor((getPlayerStorageValue(cid, 13500) - timenow)/(24 * 60 * 60))
doSendMagicEffect(getPlayerPosition(cid), math.random(28,30))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.")
if (config.removeOnUse == "yes") then
doRemoveItem(item.uid, 1)
end
return TRUE
end




info
Grupo: Cavaleiro
Registrado: 21/11/11
Posts: 160
Reputação: +14
procurei ele em talkactions nao axei. alguem pode me ajduar? vlw
ou por pra gasta 3dias de vip.