-
[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
-
Re: [Release] 1-Npc Guild HideOuts
Why is everybody releasing these... If it's really needed I'll release a proper guild hide outs after I'm done auctions.
-
Re: [Release] 1-Npc Guild HideOuts
nice release
lol 2 in 10 min
-
Re: [Release] 1-Npc Guild HideOuts
will it be possible 2 guild togheter in the same map?
-
Re: [Release] 1-Npc Guild HideOuts
Nice, try making the registration fee of hideout 10mil+.
-
Re: [Release] 1-Npc Guild HideOuts
Guys.
This is not the other guys hideout script edited.
I made this myself...
And justice, yes it will, just create the if statement, and for map id...put the same id
@MiniAxel
The only reason i released THIS is because the other guys was stupid and you would need an npc for each guild.
This is a proper guild hideout script, because you just need this npc and just keep adding guild.
And if you guys dont like it..dont post.
I only released this for the people who do want it,
not you stupid flamers..
-
Re: [Release] 1-Npc Guild HideOuts
Quote:
Originally Posted by
KillShadow05
Guys.
This is not the other guys hideout script edited.
I made this myself...
And justice, yes it will, just create the if statement, and for map id...put the same id
@MiniAxel
The only reason i released THIS is because the other guys was stupid and you would need an npc for each guild.
This is a proper guild hideout script, because you just need this npc and just keep adding guild.
And if you guys dont like it..dont post.
I only released this for the people who do want it,
not you stupid flamers..
I wasn't flaming, if that was directed towards me. I was just pointing out you could make an easier to use script by just adding some functions in java
-
Re: [Release] 1-Npc Guild HideOuts
Quote:
Originally Posted by
KillShadow05
The only reason i released THIS is because the other guys was stupid and you would need an npc for each guild.
This is a proper guild hideout script, because you just need this npc and just keep adding guild.
And if you guys dont like it..dont post.
I only released this for the people who do want it,
not you stupid flamers..
How about i will post, your script is nothing more then a bunch of else if statements. A fricken 2 year old could figure that out and place them there
-
Re: [Release] 1-Npc Guild HideOuts
Well this script works, no matter how badly coded it is.
I was thinking of making a function that gets all the guilds and using arraylists for this. This way, you'd never have to update it and it would still work. However, I'm nub at javascript and I'm not sure that would work (do arraylists work in javascript? I know arrays do). I'm also not sure javascript can get sql statements
-
Re: [Release] 1-Npc Guild HideOuts
-
Re: [Release] 1-Npc Guild HideOuts
Quote:
Originally Posted by
Moogra
Well this script works, no matter how badly coded it is.
I was thinking of making a function that gets all the guilds and using arraylists for this. This way, you'd never have to update it and it would still work. However, I'm nub at javascript and I'm not sure that would work (do arraylists work in javascript? I know arrays do). I'm also not sure javascript can get sql statements
ArrayLists doesnt work in JavaScript and it cant get sql statements, you'll have to do a method in NPCConversationManager o.o