joderson 0 Postado Março 22, 2012 Share Postado Março 22, 2012 Kero ajuda com sistema de recompensa do meu ot de war. tipo o cara mata o outro e ganha so 5 gold eu kero ke ganhe 5 crystal coins e eu nao sei aonde vai pra editar eu ate axei uns lugar parecido mais nao dava certo. VALENDO REP + Link para o comentário Compartilhar em outros sites More sharing options...
0 Subwat 405 Postado Março 31, 2012 Share Postado Março 31, 2012 me mande o script que voce usa para que eu possa edita-lo. Link para o comentário Compartilhar em outros sites More sharing options...
0 Vinc 101 Postado Março 31, 2012 Share Postado Março 31, 2012 @subwat como ele vai passa se ele nem sabe qual é???? @jordenson vai em creaturescript.xml ve todas tag que tenha " type="kill" " e ve se tem alguma com nome que lenbre repença ou algo do tipo,e poste aki para gente troca a id do item ou a quantidade Link para o comentário Compartilhar em outros sites More sharing options...
0 joderson 0 Postado Março 31, 2012 Autor Share Postado Março 31, 2012 (editado) ae vlw consegui axar. se tiver como se faze tipo akele systema de arrancar coraçao do player ta ligado ate ja tem so ke o meu nao da certo aparce nada se tiver como quando eu matar o player receber recompensa e receber um coraçao assim. EX: player matou player [justifiqued] ou [unjusfiqued]. vlw ve se me ajuda la na bagaça lordbug99. ta dando akele erro sl no seu vc testo quando vc feiz? ta ae o script function onKill(cid, target) if isPlayer(target) == TRUE then if getPlayerIp(cid) ~= getPlayerIp(target) then loot = 2160 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, 2197, 5) 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 Editado Março 31, 2012 por joderson Link para o comentário Compartilhar em outros sites More sharing options...
0 pbottrinks 29 Postado Março 31, 2012 Share Postado Março 31, 2012 function onKill(cid, target) if isPlayer(target) == TRUE then if getPlayerIp(cid) ~= getPlayerIp(target) then loot = 2160 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, 2160, 5) 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 Espero ter ajudado. Atenciosamente, Jacques Link para o comentário Compartilhar em outros sites More sharing options...
0 SkyDangerous 395 Postado Abril 2, 2012 Share Postado Abril 2, 2012 Não intendi muito o script. Por quê o player recebe 10k e depois 50k? Link para o comentário Compartilhar em outros sites More sharing options...
0 Vinc 101 Postado Abril 2, 2012 Share Postado Abril 2, 2012 aparente mente são dois script,porque n teria logica coloca duas veses onKill no mesmo script Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
joderson 0
Kero ajuda com sistema de recompensa do meu ot de war. tipo o cara mata o outro e ganha so 5 gold
eu kero ke ganhe 5 crystal coins e eu nao sei aonde vai pra editar eu ate axei uns lugar parecido mais nao dava certo.
VALENDO REP +
Link para o comentário
Compartilhar em outros sites
6 respostass a esta questão
Posts Recomendados