By Faeelz, 06 de jun. de 2012 in Scripts
info
Group: Campones
Joined: 27/11/11
Posts: 42
Reputation: +1
Por favor me ajudem, quero arrumar o meu frag reward ele esta dando 5 platinum coin's e eu quero que dê 3 gold coins
aqui esta o script:
function onKill(cid, target)if isPlayer(target) == TRUE then if getPlayerIp(cid) ~= getPlayerIp(target) then loot = 2148 item = doPlayerAddItem(cid,loot,1) elseif getPlayerName(cid) == getPlayerName(target) then doPlayerAddItem(cid,loot,1) else doPlayerAddExperience(cid, -2000000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.") end end return TRUE end function onKill(cid, target) if isPlayer(target) == 1 then local new_container = doCreateItemEx(2002) local iter = 0 while iter ~= 20 do doAddContainerItem(new_container, 2148, 3) iter = iter + 1 end doPlayerAddItemEx(cid, new_container, 1) if getPlayerFrags(cid) == 5 then broadcastMessage(getCreatureName(cid) .. " is on killing spree! He killed 5 players!") elseif getPlayerFrags(cid) == 10 then broadcastMessage(getCreatureName(cid) .. " is dominating! He killed 10 players!") elseif getPlayerFrags(cid) == 25 then broadcastMessage(getCreatureName(cid) .. " is GODLIKE! He killed 25 players!") elseif getPlayerFrags(cid) == 50 then broadcastMessage(getCreatureName(cid) .. " is UNSTOPPABLE!! He killed 50 players! DO SOMETHING!") end setPlayerStorageValue(cid, 12345, getPlayerStorageValue(cid, 12345)+10) local param = {cid = cid, x = -1, y = -1, typee = CONST_ME_FIREWORK_RED} local animid = addEvent(doShowEffectOnPosition, 500, param) local param = {cid = cid, x = 0, y = -1, typee = CONST_ME_FIREWORK_RED} local animid = addEvent(doShowEffectOnPosition, 500, param) local param = {cid = cid, x = 1, y = -1, typee = CONST_ME_FIREWORK_RED} local animid = addEvent(doShowEffectOnPosition, 500, param) local param = {cid = cid, x = 1, y = 0, typee = CONST_ME_FIREWORK_YELLOW} local animid = addEvent(doShowEffectOnPosition, 500, param) local param = {cid = cid, x = 0, y = 0, typee = CONST_ME_FIREWORK_YELLOW} local animid = addEvent(doShowEffectOnPosition, 500, param) local param = {cid = cid, x = -1, y = 0, typee = CONST_ME_FIREWORK_YELLOW} local animid = addEvent(doShowEffectOnPosition, 500, param) local param = {cid = cid, x = -1, y = 1, typee = CONST_ME_GREEN_RINGS} local animid = addEvent(doShowEffectOnPosition, 500, param) local param = {cid = cid, x = 0, y = 1, typee = CONST_ME_GREEN_RINGS} local animid = addEvent(doShowEffectOnPosition, 500, param) local param = {cid = cid, x = 1, y = 1, typee = CONST_ME_GREEN_RINGS} local animid = addEvent(doShowEffectOnPosition, 500, param) local param = {cid = cid, x = -1, y = -1, typee = CONST_ME_FIREWORK_RED} local animid = addEvent(doShowEffectOnPosition, 1500, param) local param = {cid = cid, x = 0, y = -1, typee = CONST_ME_FIREWORK_RED} local animid = addEvent(doShowEffectOnPosition, 1500, param) local param = {cid = cid, x = 1, y = -1, typee = CONST_ME_FIREWORK_RED} local animid = addEvent(doShowEffectOnPosition, 1500, param) local param = {cid = cid, x = 1, y = 0, typee = CONST_ME_FIREWORK_YELLOW} local animid = addEvent(doShowEffectOnPosition, 1500, param) local param = {cid = cid, x = 0, y = 0, typee = CONST_ME_FIREWORK_YELLOW} local animid = addEvent(doShowEffectOnPosition, 1500, param) local param = {cid = cid, x = -1, y = 0, typee = CONST_ME_FIREWORK_YELLOW} local animid = addEvent(doShowEffectOnPosition, 1500, param) local param = {cid = cid, x = -1, y = 1, typee = CONST_ME_GREEN_RINGS} local animid = addEvent(doShowEffectOnPosition, 1500, param) local param = {cid = cid, x = 0, y = 1, typee = CONST_ME_GREEN_RINGS} local animid = addEvent(doShowEffectOnPosition, 1500, param) local param = {cid = cid, x = 1, y = 1, typee = CONST_ME_GREEN_RINGS} local animid = addEvent(doShowEffectOnPosition, 1500, param) local param = {cid = cid, x = -1, y = -1, typee = CONST_ME_FIREWORK_RED} local animid = addEvent(doShowEffectOnPosition, 2500, param) local param = {cid = cid, x = 0, y = -1, typee = CONST_ME_FIREWORK_RED} local animid = addEvent(doShowEffectOnPosition, 2500, param) local param = {cid = cid, x = 1, y = -1, typee = CONST_ME_FIREWORK_RED} local animid = addEvent(doShowEffectOnPosition, 2500, param) local param = {cid = cid, x = 1, y = 0, typee = CONST_ME_FIREWORK_YELLOW} local animid = addEvent(doShowEffectOnPosition, 2500, param) local param = {cid = cid, x = 0, y = 0, typee = CONST_ME_FIREWORK_YELLOW} local animid = addEvent(doShowEffectOnPosition, 2500, param) local param = {cid = cid, x = -1, y = 0, typee = CONST_ME_FIREWORK_YELLOW} local animid = addEvent(doShowEffectOnPosition, 2500, param) local param = {cid = cid, x = -1, y = 1, typee = CONST_ME_GREEN_RINGS} local animid = addEvent(doShowEffectOnPosition, 2500, param) local param = {cid = cid, x = 0, y = 1, typee = CONST_ME_GREEN_RINGS} local animid = addEvent(doShowEffectOnPosition, 2500, param) local param = {cid = cid, x = 1, y = 1, typee = CONST_ME_GREEN_RINGS} local animid = addEvent(doShowEffectOnPosition, 2500, param) end return 1 end
if isPlayer(target) == TRUE then
if getPlayerIp(cid) ~= getPlayerIp(target) then
loot = 2148
item = doPlayerAddItem(cid,loot,1)
elseif getPlayerName(cid) == getPlayerName(target) then
doPlayerAddItem(cid,loot,1)
else
doPlayerAddExperience(cid, -2000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
end
return TRUE
function onKill(cid, target)
if isPlayer(target) == 1 then
local new_container = doCreateItemEx(2002)
local iter = 0
while iter ~= 20 do
doAddContainerItem(new_container, 2148, 3)
iter = iter + 1
doPlayerAddItemEx(cid, new_container, 1)
if getPlayerFrags(cid) == 5 then
broadcastMessage(getCreatureName(cid) .. " is on killing spree! He killed 5 players!")
elseif getPlayerFrags(cid) == 10 then
broadcastMessage(getCreatureName(cid) .. " is dominating! He killed 10 players!")
elseif getPlayerFrags(cid) == 25 then
broadcastMessage(getCreatureName(cid) .. " is GODLIKE! He killed 25 players!")
elseif getPlayerFrags(cid) == 50 then
broadcastMessage(getCreatureName(cid) .. " is UNSTOPPABLE!! He killed 50 players! DO SOMETHING!")
setPlayerStorageValue(cid, 12345, getPlayerStorageValue(cid, 12345)+10)
local param = {cid = cid, x = -1, y = -1, typee = CONST_ME_FIREWORK_RED}
local animid = addEvent(doShowEffectOnPosition, 500, param)
local param = {cid = cid, x = 0, y = -1, typee = CONST_ME_FIREWORK_RED}
local param = {cid = cid, x = 1, y = -1, typee = CONST_ME_FIREWORK_RED}
local param = {cid = cid, x = 1, y = 0, typee = CONST_ME_FIREWORK_YELLOW}
local param = {cid = cid, x = 0, y = 0, typee = CONST_ME_FIREWORK_YELLOW}
local param = {cid = cid, x = -1, y = 0, typee = CONST_ME_FIREWORK_YELLOW}
local param = {cid = cid, x = -1, y = 1, typee = CONST_ME_GREEN_RINGS}
local param = {cid = cid, x = 0, y = 1, typee = CONST_ME_GREEN_RINGS}
local param = {cid = cid, x = 1, y = 1, typee = CONST_ME_GREEN_RINGS}
local animid = addEvent(doShowEffectOnPosition, 1500, param)
local animid = addEvent(doShowEffectOnPosition, 2500, param)
return 1
Group: Conde
Joined: 12/11/08
Posts: 520
Reputation: +73
Gender: Masculino
Amigo da próxima vez seja mais especifico no Titulo do Seu Tópico.
Renomeando para " Duvida - frag reward "
boa sorte e mais atenção.
info
Group: Campones
Joined: 27/11/11
Posts: 42
Reputation: +1
Por favor me ajudem, quero arrumar o meu frag reward ele esta dando 5 platinum coin's e eu quero que dê 3 gold coins
aqui esta o script: