bump
|
Hey I'm new to Rune-Server and the title basically says it all. On my server, the spot where a new person first logs in is on a small island and it contains the Npc RuneScape guide and 2 portals. I want it to be like if you click either portal first, it will send the player a message saying "You need to speak to the guide before you can click this portal". After the player completely talks to the Npc, they are allowed to click either portal.
If anyone can help me with this I would really appreciate it.
I am using Project Insanity.
Thanks.
bump
Well make a sort of point system that if you speak to the npc u get 1 Guide points or ur guide done = turns from false to true and add soemthing liek this to the portal :
case XXXX: //object id
if (Guide done = false ) {
sendMessage("Talk to the npc first boob");
else }
triggertele 3333 3333; //or whatever
}
break;
soemthing like that. I hope it helped
Make it like this
and make it so like after the last dialogue finishedtalk = 1;Code:case id: if(finishedtalk = 0) { yourthing return; } else if(finishedtalk = 1) { what you want } break;
just a fast example
Haha dude above me was faster
I'm having trouble making the int for this can anyone help me out?
haven't been on in a week so bump
Edit: do you got MSN/Skype? I'll do it for you.
I'd rather not do that. I just need some boolean or int that will help me make this.
ok here: figure yourself where it should be
Code:} else if (token.equals("npc-home")) { p.npcTalked = Integer.parseInt(token2);Code:characterfile.write("npc-home = ", 0, 18); characterfile.write(Integer.toString(p.npcTalked), 0, Integer.toString(p.npcTalked).length()); characterfile.newLine();Code:case OBJECTID: if (c.npcTalked == 0) { c.getPA().startTeleport(xID, yID, 0, "modern"); } else c.sendMessage("You need to talk to the npc before using this portal"); break;Code:case 2000: sendOption2("I want to go further", "No i want to stay here"); c.npcTalked += 1 break;
something like that if u mess around u can make it better goodluck
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |