[RELEASE]npc that opens a shop if you are a certain job
i was bored so i made this i dono if it will work
change the SUPERGM to the job you want it to open for and the SHOP ID HERE to the shop id
PHP Code:
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.SUPERGM)) {
cm.sendNext("Hi, GM!");
cm.sendyesno("do you want to open the the cooleo shop")
}
if (selection == 0) {
cm.openShop(SHOP ID HERE)
}
if (selection == 1) {
cm.sendnext("your very nice")
}
cm.dispose()
}
}
}
Re: [RELEASE]npc that opens a shop if you are a certain job
I don't think this will work.
Re: [RELEASE]npc that opens a shop if you are a certain job
maybe not i just fooled around wit it in like 2 mins
Re: [RELEASE]npc that opens a shop if you are a certain job
lols wrong code.
maybe i try to fix on this.
Re: [RELEASE]npc that opens a shop if you are a certain job
its lacking all the premilnary bits, mode, status, etc. doubt it will even open right. I guess you can say this is a foundation scrip to play with. And im sure everyone is most aware of the...
Quote:
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.SUPERGM)) {
command.
Minor release much ._.
Re: [RELEASE]npc that opens a shop if you are a certain job
it will crash, since there are 2 conversations opening at the begin, and then, selection as default is 0, so 3.
Re: [RELEASE]npc that opens a shop if you are a certain job
yeap, there are no mode and status, its like gonna run all at once o.o
Re: [RELEASE]npc that opens a shop if you are a certain job
PHP Code:
// up top somewhere
importPackage(net.sf.odinms.client);
if (status == 0) {
if (cm.getJob().equals(MapleJob.SUPERGM)) {
cm.sendNext("Hi, GM!");
}else if (status ==1){
cm.sendYesNo("do you want to open the the cooleo shop? \r\n#L0#Yea sure w/e#l \r\n#L1#Nah im coo#l")
}else if (status == 2)
if (selection == 0) {
cm.openShop(SHOP ID HERE)
}
if (selection == 1) {
cm.sendOk("Cya next time")
}
cm.dispose()
}
}
}
note, its still missing a shit load
Re: [RELEASE]npc that opens a shop if you are a certain job
bako you should try the things you do before releasing it.
btw good job.
Re: [RELEASE]npc that opens a shop if you are a certain job
Bako, you phail. Stop releasing untested stuff.
@DrFusion: Thank you for giving Bako the start of the "NPC that opens a shop if you are a certain job."
Re: [RELEASE]npc that opens a shop if you are a certain job
this script is retarded
there is no way this has a chance of even working
Re: [RELEASE]npc that opens a shop if you are a certain job
Check the rules
Quote:
What does NOT go here.
-Requests for files.
Use search. If you do not find anything, its probably not released.
-Requests for hacks.
-Buying and selling of files.
-Threads to do with. Development, Guides, Help, Advertisements.
-Untested Releases.
Re: [RELEASE]npc that opens a shop if you are a certain job
Wow Bako.. How many untested and not workin NPCs are you gonna release? O.o
The NPCs that you released are freakin easy to do.. -.-
Re: [RELEASE]npc that opens a shop if you are a certain job
LOL i dun think is work -=.=-
Re: [RELEASE]npc that opens a shop if you are a certain job
fag yu jst bumped this ..