Ajuda Porta Vip Actions

ibne
Por ibne
em Scripts

ibne

Ibne Pontual !
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 03/12/10Posts: 103

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)

14kh17a.png

xTibia - Sua comunidade de Tibia e Otserv.

 

a94fbaad89bd13ef4427432baf13b3c3.gif

 

SmiX

SlashX
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 25/01/12Posts: 963

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

ibne

Ibne Pontual !
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 03/12/10Posts: 103

PODE ME EXPLICAR AONDE COLOCA É ETC ?

14kh17a.png

xTibia - Sua comunidade de Tibia e Otserv.

 

a94fbaad89bd13ef4427432baf13b3c3.gif