Postado Julho 19, 2014 11 anos Achei esse Script Pvp Title, funciona assim, uma pessoa entra num, tc de cor blue, e outro no tc cor rede, ai so ta dando pra pvp assim, Red X Blue, gostaria de saber se algum scripter poderia mi ajudar, fazendo com que apenas 1 cor desse pra atacar os player ou matar quando entrasse.. irei deixar o script function onStepIn(cid, item, position, fromPosition) --alterado v1.7 reformulado e melhorado if isSummon(cid) or ehMonstro(cid) then return false end --alterado v1.8 local posis = { --{{pos}, storage, cor da roupa}, [25695] = {{x = 1214, y = 1159, z = 15}, 6598754, 113}, [25696] = {{x = 1214, y = 1198, z = 15}, 6598755, 107}, [25697] = {{x = 973, y = 1065, z = 13}}, [25698] = {{x = 973, y = 1065, z = 13}}, } local action = posis[item.actionid] local out = getPlayerSex(cid) == 0 and 511 or 510 --alterado v1.9 if getPlayerStorageValue(cid, 17001) == 1 or getPlayerStorageValue(cid, 5700) >= 1 or getPlayerStorageValue(cid, 17000) == 1 then doPlayerSendCancel(cid, "You can't do that while ride/fly/or in a bike.") doTeleportThing(cid, fromPosition, false) --alterado v1.6 return true end if getPlayerStorageValue(cid, 52480) >= 1 then doPlayerSendCancel(cid, "You are already dueling!") doTeleportThing(cid, fromPosition, false) --alterado v1.6 return true end if posis[item.actionid] then if isInArray({25695, 25696}, item.actionid) then setPlayerStorageValue(cid, action[2], 1) doSetCreatureOutfit(cid, {lookType = out, lookBody = action[3], lookHead = action[3], lookLegs = action[3], lookFeet = action[3]}, -1) else setPlayerStorageValue(cid, 6598754, -1) setPlayerStorageValue(cid, 6598755, -1) doRemoveCondition(cid, CONDITION_OUTFIT) end doTeleportThing(cid, getClosestFreeTile(cid, action[1]), false) elseif item.actionid == 24158 then if getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then doPlayerSendCancel(cid, "You can't do that while is in battle!") doTeleportThing(cid, fromPosition, false) end end return true end
Postado Julho 19, 2014 11 anos Autor Em 19/07/2014 em 13:13, Valakinhas disse: mesmo problema mais queria que alguem adaptasse para o pfield ja arrumei aqui
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.