Remove this statement:
Code:if(c.getPA().dialogueAction(0)) { c.getShops().openShop(4); }
|
Hey im trying to make multiple teleports for my PvP Server and im fairly certain i put everything in correctly and asigned it to the right dialogue but it keeps opening the PvP Shop please tell me if there is anything wrong with it i'd highly appreciate it
Dialogue
TeleportCode:case 696: c.getDH().sendOption2("Ardounge North-West", "Ardounge South-East"); c.teleAction = 1; break;
Code:case 9158: if(c.getPA().dialogueAction(696)) { c.getPA().startTeleport(2617, 3334, 0, "modern"); } if(c.getPA().dialogueAction(0)) { c.getShops().openShop(4); } if (c.getPA().dialogueAction(276)) { c.getPA().removeAllWindows(); } else { c.dialogueAction = 0; c.getPA().removeAllWindows(); } if (c.dialogueAction == 1327) { c.getDungeoneering().leaveDung(c); } break;
Remove this statement:
Code:if(c.getPA().dialogueAction(0)) { c.getShops().openShop(4); }
You realize you also have 2 teleport options but only one teleport location?
9158 is the 2nd option/button in a sendoption2 statement so that teleport is for his ardougne southeast.
try making this
thisCode:case 696: c.getDH().sendOption2("Ardounge North-West", "Ardounge South-East"); c.teleAction = 1; break;
Code:case 696: c.getDH().sendOption2("Ardounge North-West", "Ardounge South-East"); c.dialogueAction = 696; c.teleAction = -1; break;
@Visuall you do realize im just showing one of the teleports right
Then you'll have to add a break; somewhere between
My bad, I didn't recognize the case number.
OT: Just to clarify, it when you click on the teleport option it opens the shop, or when you click on the NPC?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |