[Release] 1-Npc Guild HideOuts
First off, i know this is very easy to make, but know one released it here yet, so i guess i will..
All you need to do is add one simple line for each guild and its good.
This helps so you dont need 1 npc for each and every individual guild.
Now i used Professor Foxwit, if you read the script it'll make more sense.
Haha
Code:
/* Gangstas Guild Hideout Warper
*/
/*Made by ShadowMS (Killshadow05) of Ragezone
*/
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0) {
cm.dispose();
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("Hello. I am in charge of Guild Hideouts.\r\nThe Hideout is a map that only your guild can go to.\r\nThis gives you a chance for Guild events and other specials that your leader has chosen.\r\n\r\nWould you like to go for a ride to your guilds Hide-Out?");
}
else if (status == 1) {
if (cm.getPlayer().getGuildId() == 55) {
cm.warp(180000000, 0);
cm.sendNext("Have fun in ------'s GM hideout!");
cm.dispose();
}
else if (cm.getPlayer().getGuildId() == Guild ID) {
cm.warp(MAP ID, 0);
cm.sendNext("Have fun in NAMEHERE's hideout!");
cm.dispose();
}
else {
cm.sendNext("Sorry your either not in a guild, or your Guild leader has not sponsored a hideout. If you are in a guild, be sure to talk to your guild leader for more info.");
cm.dispose();
}
}
}
}
Very simple.
Now, to get GuildID, you just simply go into your MySQL Database, and under the guilds tab.
Look up the guild name you want, and beside it will be the guild id, and you just simply place it there.
Now, what makes this cool is you need 1 npc.
And the very simple script to show how to add more is by this.
Beneath This:
Code:
if (cm.getPlayer().getGuildId() == 55) {
cm.warp(180000000, 0);
cm.sendNext("Have fun in ------'s GM hideout!");
cm.dispose();
}
Add this, ones already put there for ya.
Code:
else if (cm.getPlayer().getGuildId() == Guild ID) {
cm.warp(MAP ID, 0);
cm.sendNext("Have fun in NAMEHERE's hideout!");
cm.dispose();
}
Now, dont forget to edit the GuildID, The Map ID, and the 'NAMEHERE' is the guild name.
Add one of those as much as you want, and you got yourself a succesful guild hideout.
~Little Tips~
Ok, and the maps i recommend, are Event maps.
Mainly 'The Town in the East' or something like that.
To search for good ones, usualy ust type in-game these commands,
!search North , !search South , !search East , !search West
And if u look under the maps, there should be those event maps.
Those are very good, and pretty small but not too small, for guild hideouts.
Hope this helped,
And dont forget to give credits for THIS Script to ShadowMS Staff..
Thanks
Credits:
ShadowMS Staff
Original person who thought of this idea.
Re: [Release] 1-Npc Guild HideOuts
1st post <3 you reaper :D
Re: [Release] 1-Npc Guild HideOuts
easy but good job ?
two guild hideouts in 10 min :?:
Re: [Release] 1-Npc Guild HideOuts
U can add as many guild hideouts as you want.
And i was over msn talking to someone, thats why it took a bit of time to release.
Like i said its very easy, but no one released it yet, soo.
Re: [Release] 1-Npc Guild HideOuts
Re: [Release] 1-Npc Guild HideOuts
Quote:
Originally Posted by
KillShadow05
U can add as many guild hideouts as you want.
And i was over msn talking to someone, thats why it took a bit of time to release.
Like i said its very easy, but no one released it yet, soo.
som 1 just released it
and they are the same release pretty much
just some minor edits by you
Re: [Release] 1-Npc Guild HideOuts
Re: [Release] 1-Npc Guild HideOuts
Ik someone just released something like this.
I released this one BECAUSE of the other one.
Theirs you have to make a npc for each guild
This is an all in 1 guild.
Re: [Release] 1-Npc Guild HideOuts
Yeah i just read that post, its one NPC Per Guild.
His is one NPC and you get warped to whatever map your guild "owns"
Re: [Release] 1-Npc Guild HideOuts
If this is for multi-guild, wouldnt Arrays be more useful here? o.o
Re: [Release] 1-Npc Guild HideOuts
Thanks and nice release, I just wish I knew how to use Java, I'm all for sqls.
Re: [Release] 1-Npc Guild HideOuts
when i add i cant click npc..or when i click noting happens
Re: [Release] 1-Npc Guild HideOuts
Let me see your script and see if u did anything wrong.
Re: [Release] 1-Npc Guild HideOuts
lols what if other guild members talk to the npc.
when the current guild is still in there ?
Re: [Release] 1-Npc Guild HideOuts
Basically what the other guy released but with else if statements. Yay