IB
pedido

Ajuda Porta Vip Actions

Por ibne, 02 de jul. de 2012 em Scripts

porta vip
5
1.2k
ibneI
02 de julho de 2012 às 00:29

mINHA PORTA VIP É ASSIM :

 

-- Credits StreamSide and Empty
function onUse(cid, item, fromPosition, itemEx, toPosition)
local cidPosition = getCreaturePosition(cid)
if (item.actionid == 5788 and getPlayerStorageValue(cid,11551) >= 1) then
if cidPosition.x < toPosition.x then
doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
end
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, si keri vip pideselo al god!")
return TRUE
end
return FALSE
end

qUERO UM COMANDO QUE DER VIP EX : /darvip (o nome do jogador ) (dias de vip)

blumasterB
02 de julho de 2012 às 06:01

Amigo nao entendi muito bem teu pedido porem se seu sistema de vip nao esta muito bom.

 

eu aconselho a usar este que eu usei e ficou muito bom em meu servidor.

 

http://www.xtibia.com/forum/topic/136543-vip-system-by-account-v10/

SmiXS
03 de julho de 2012 às 16:45

Essé você usa assim, /addvipdays {dias vip}, {nome do player}

function onSay(cid, words, param, channel)
   if(param == '') then
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
       return true
   end

   local t = string.explode(param, ",")
   t[1] = tonumber(t[1])
   if(not t[1]) then
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.")
       return true
   end

   local pid = cid
   if(t[2]) then
       pid = getPlayerByNameWildcard(t[2])
       if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
           doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.")
           return true
       end
   end

   local tmp = t[1]

   setPlayerStorageValue(pid, tmp)
   doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You added 30 days vip for the player "..t[2]..".")
   return true
end

Editado Julho 3 por SmiX

ibneI
04 de julho de 2012 às 00:26

PODE ME EXPLICAR AONDE COLOCA É ETC ?

SmiXS
04 de julho de 2012 às 15:10

Vá em talkactions/scripts e crie um arquivo com o nome addvip.lua e cole o código.

depois vá em talkactionss/tallkactions.XML abra e cole isso dentro.

<talkaction words="/addvip" access="4" event="script" value="addvip.lua">

Editado Julho 4 por SmiX