Ir para conteúdo

Vip - Staff


guixap

Posts Recomendados

Hail Xtibian's

 

Estou querendo arrumar duas coisas. Primeiramente o sistema vip:

 

VIP

 

function onSay(cid,words,param)

 

local requiredGroup = 6

 

local vipStorageValue = 11551

 

local target = getPlayerByNameWildcard(param)

 

if words == '/addvip' then

 

if target > 0 then

if getPlayerGroupId(cid) >= requiredGroup and param ~= "" and getPlayerStorageValue(target, vipStorageValue) == -1 then

adminName = getPlayerName(cid)

setPlayerStorageValue(target, vipStorageValue, 1)

doPlayerSendTextMessage(target, MESSAGE_STATUS_CONSOLE_BLUE, 'You are now a V.I.P. member. '..adminName..' gave you the V.I.P.')

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You made a V.I.P. member to "..param..".")

 

elseif getPlayerGroupId(cid) < requiredGroup then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't make V.I.P. member to anyone.")

 

elseif getPlayerStorageValue(target, vipStorageValue) ~= -1 then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This player is already a V.I.P. member.")

end

else

doPlayerSendTextMessage(cid, 21, "This player doesn't exists or is not online.")

 

end

 

 

elseif words == '/takevip' then

 

if target > 0 then

if getPlayerGroupId(cid) >= requiredGroup and param ~= "" and getPlayerStorageValue(target, vipStorageValue) == 1 then

adminName = getPlayerName(cid)

setPlayerStorageValue(target, vipStorageValue, -1)

doPlayerSendTextMessage(target, MESSAGE_STATUS_CONSOLE_BLUE, 'You are now a normal player. '..adminName..' took your V.I.P.')

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You took the V.I.P. of "..param..".")

 

elseif getPlayerGroupId(cid) < requiredGroup then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't take the V.I.P. of anyone.")

 

elseif getPlayerStorageValue(target, vipStorageValue) ~= 1 then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This player is not a V.I.P. member.")

end

else

doPlayerSendTextMessage(cid, 21, "This player doesn't exists or is not online.")

 

end

end

return TRUE

end

 

Esse sitema é por talckation, mais ele add vip para sempre e so eu posso add o god e num reitra nada de money.

Quero que seja assim agora. Que os players possam adquirir a vip falando !vip, e que retire 200 Gold Ingot deles.

 

 

STAFF.

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DEATHHIT)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGYBALL)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.00, 3, -1.15, 4)

 

function onUseWeapon(cid, var)

return doCombat(cid, combat, var)

end

 

Essa é Wand mais aonde esta em negrito, eu kero que seja diferente num por magic level quero attack igual as outras. min 1000 --- max 1500.

Eu quero fazer por script pq é para dar um efeito diferente.

 

Obrigando Deis De jah

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...