ka9 5 Postado Julho 16, 2009 Share Postado Julho 16, 2009 To querendo um script que so passa na porta quem for kina e elite kina, paladin e royal paladin to prescisando mesmo se tiverem coloka aki plix flws Link para o comentário https://xtibia.com/forum/topic/116414-porta-para-knights-e-elite-knights-paladin-e-royal-paladin/ Compartilhar em outros sites More sharing options...
delton 6 Postado Julho 16, 2009 Share Postado Julho 16, 2009 Qual TFS vc utiliza? Fala mais sobre o server =) Link para o comentário https://xtibia.com/forum/topic/116414-porta-para-knights-e-elite-knights-paladin-e-royal-paladin/#findComment-763361 Compartilhar em outros sites More sharing options...
Khost 0 Postado Julho 16, 2009 Share Postado Julho 16, 2009 (editado) ta ae kra ... function onUse(cid, item, frompos, item2, topos)reqvoc = getPlayerVocation(cid)if item.uid == 8200 thenif reqvoc == 3 or reqvoc == 7 thenpos = getPlayerPosition(cid)if pos.x == topos.x thenif pos.y < topos.y thenpos.y = topos.y + 1elsepos.y = topos.y - 1endelseif pos.y == topos.y thenif pos.x < topos.x thenpos.x = topos.x + 1elsepos.x = topos.x - 1endelsedoPlayerSendTextMessage(cid,22,'Stand in front of the door.')return 1enddoTeleportThing(cid,pos)doSendMagicEffect(topos,12)elsedoPlayerSendTextMessage(cid,22,'Somente Paladins e Royal Paladins entram aqui.')endreturn 1elsereturn 0endend function onUse(cid, item, frompos, item2, topos)reqvoc = getPlayerVocation(cid)if item.uid == 8203 thenif reqvoc == 4 or reqvoc == 8 thenpos = getPlayerPosition(cid)if pos.x == topos.x thenif pos.y < topos.y thenpos.y = topos.y + 1elsepos.y = topos.y - 1endelseif pos.y == topos.y thenif pos.x < topos.x thenpos.x = topos.x + 1elsepos.x = topos.x - 1endelsedoPlayerSendTextMessage(cid,22,'Stand in front of the door.')return 1enddoTeleportThing(cid,pos)doSendMagicEffect(topos,12)elsedoPlayerSendTextMessage(cid,22,'Somente Knights e Elite Knights entram aqui.')endreturn 1elsereturn 0endend vê se funciona , ja modifiquei testa, eu n pude testa esse script , mas qualquer dúvida manda pm.. Editado Julho 16, 2009 por Khost Link para o comentário https://xtibia.com/forum/topic/116414-porta-para-knights-e-elite-knights-paladin-e-royal-paladin/#findComment-763404 Compartilhar em outros sites More sharing options...
ka9 5 Postado Julho 16, 2009 Autor Share Postado Julho 16, 2009 afs ta dando erro.. ver isso ae mais eu quero que seja no mesmo script as vacations o delton eu usso o tfs.. Link para o comentário https://xtibia.com/forum/topic/116414-porta-para-knights-e-elite-knights-paladin-e-royal-paladin/#findComment-763479 Compartilhar em outros sites More sharing options...
satan666 12 Postado Julho 16, 2009 Share Postado Julho 16, 2009 hummm... function onUse(cid, item, fromPosition, itemEx, toPosition)voc = getPlayerVocation(cid) if(voc == 3 or voc == 4 or voc == 7 or voc == 8) then doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition, TRUE) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "voce nao pode passar.") end return TRUE end Link para o comentário https://xtibia.com/forum/topic/116414-porta-para-knights-e-elite-knights-paladin-e-royal-paladin/#findComment-763516 Compartilhar em outros sites More sharing options...
Khost 0 Postado Julho 17, 2009 Share Postado Julho 17, 2009 Marcryzius oq eu fiz de errado no script??? Link para o comentário https://xtibia.com/forum/topic/116414-porta-para-knights-e-elite-knights-paladin-e-royal-paladin/#findComment-763899 Compartilhar em outros sites More sharing options...
satan666 12 Postado Julho 17, 2009 Share Postado Julho 17, 2009 basicamente nao mas caso a pessoa nao esteja em frente a porta ele da erro e pedi pra pessoa ficar de frente com ela ja o meu script ele pode estar na diagonal que sera puxado pra a pos da porta. Link para o comentário https://xtibia.com/forum/topic/116414-porta-para-knights-e-elite-knights-paladin-e-royal-paladin/#findComment-763910 Compartilhar em outros sites More sharing options...
Posts Recomendados