Re: [Release] Event System
do we gotta compile it to make it work
Re: [Release] Event System
Quote:
Originally Posted by
zetzx
do we gotta compile it to make it work
You always have to compile when you edit a .java file.
Re: [Release] Event System
Quote:
Originally Posted by
zetzx
wow tell me how to use it -_-
Use the command.
Re: [Release] Event System
Re: [Release] Event System
Quote:
Originally Posted by
makeutus
That picture doesn't show much.
Re: [Release] Event System
Code:
public void eventWarp(int mapid, int max) {
MapleMap eventmap = mmf.getMap(mapid);
int players = eventmap.getAllPlayer().size();
if(players >= max) {
c.getPlayer().dropMessage("The event map is full.");
} else {
c.getPlayer().dropMessage("You have been warped to the event map.");
c.getPlayer().changeMap(eventmap, eventmap.getPortal(0));
}
}
public boolean eventEnabled() {
return c.getChannelServer().getEventActive();
}
public int getMaxPlayers() {
return c.getChannelServer().getMaxPlayers();
}
public int getEventMap() {
return c.getChannelServer().getEventMap();
}
That should be placed to NPCConversationManager, correct ?
Re: [Release] Event System
fix:
Code:
public void eventWarp(int mapid, int max) {
MapleMap eventmap = mmf.getMap(mapid);
int players = eventmap.getAllPlayer().size();
if(players >= max) {
MaplePacketCreator.serverNotice(1, "The event map is full!");
} else {
MaplePacketCreator.serverNotice(1, "You have been warped to the event map!");
c.getPlayer().changeMap(eventmap, eventmap.getPortal(0));
}
}
public boolean eventEnabled() {
return c.getChannelServer().getEventActive();
}
public int getMaxPlayers() {
return c.getChannelServer().getMaxPlayers();
}
public int getEventMap() {
return c.getChannelServer().getEventMap();
}
work 100%!
Re: [Release] Event System
Quote:
Originally Posted by
MiniAxel
I don't want it on Valhalla. So I said it like that, and Sparks assumed it wouldn't go on anyway. I take a precaution and he's mad. Lawl.
i find this really funny. you know why? because when we say to leave it on Valhalla you go ahead and leak it here. than you guys defend it saying "if its public than it should be released and used" so to just piss you off because the modds have to agree for they say this. suck it up and deal with it for it is now public and we "now" have the right to post this anywhere we feel like (with cred of course).
now you are saying not to release on valhalla... thats an ass move bud if you know what i mean. its like saying ragezone does not have to follow the rules they set. if your going to play this game of saying "dont release on Valhalla" than we can say "dont release on ragezone" i think that sounds fair.
if modds delete this this thread/section fails for i just made a hugh point that you cant really defend for i used your own words against you.
ontopic: this is an ok release
ps modds i have this conversation saved for future calling too. ^_^ have a nice day
EDIT: BAMM smack in the face i found something that you cant do anything about
Quote:
Originally Posted by
evill33t
i just made a short audit of the odinsnow base and saw some realy huge flaws but since i am not interested in maplestory at all i dont care what you have or not have
for me its just about the gpl violations here
if you dont publish your work i am totally cool with it its your decision but if you post it somewhere everyone can redistribute it as they like as long as they leave author and license intact
Quote:
Originally Posted by
evill33t
You dont understand how this works, if he releases it to 1 person the 1 person can do with it whatever he likes like rereleasing aslong as the author and license stays intact
direct quote from the Supervisor himself. click the link thing at the top of the quote next to the name to goto the thread/spot where he said it
although that goes against what im trying to get across but still. he said if its public than we can post anywhere else with cred. if you want to change this we would be more than glad to. just say that you will and we will be marry with your choose and than this war can stop. agreed? *ps im not a admin or anything but a normal valhalla user. only trying to solve the problem that has occurred.
ether allow us to keep our releases on valhalla and ragezone releases on ragezone or update your rules saying we cant say to keep the release only on ragezone.
Re: [Release] Event System
Re: [Release] Event System
Re: [Release] Event System
Re: [Release] Event System
Quote:
Originally Posted by
holt5401
i find this really funny. you know why? because when we say to leave it on Valhalla you go ahead and leak it here. than you guys defend it saying "if its public than it should be released and used" so to just piss you off because the modds have to agree for they say this. suck it up and deal with it for it is now public and we "now" have the right to post this anywhere we feel like (with cred of course).
now you are saying not to release on valhalla... thats an ass move bud if you know what i mean. its like saying ragezone does not have to follow the rules they set. if your going to play this game of saying "dont release on Valhalla" than we can say "dont release on ragezone" i think that sounds fair.
if modds delete this this thread/section fails for i just made a hugh point that you cant really defend for i used your own words against you.
ontopic: this is an ok release
ps modds i have this conversation saved for future calling too. ^_^ have a nice day
EDIT: BAMM smack in the face i found something that you cant do anything about
direct quote from the Supervisor himself. click the link thing at the top of the quote next to the name to goto the thread/spot where he said it
although that goes against what im trying to get across but still. he said if its public than we can post anywhere else with cred. if you want to change this we would be more than glad to. just say that you will and we will be marry with your choose and than this war can stop. agreed? *ps im not a admin or anything but a normal valhalla user. only trying to solve the problem that has occurred.
ether allow us to keep our releases on valhalla and ragezone releases on ragezone or update your rules saying we cant say to keep the release only on ragezone.
You're talking about other rules on a different forum. The forum said they don't allow leaks, and it can be removed as requested. Or if someone requests it not to be released there it won't be. Which is what I did.
Re: [Release] Event System
Quote:
Originally Posted by
yarinman
Code:
public void eventWarp(int mapid, int max) {
MapleMap eventmap = mmf.getMap(mapid);
int players = eventmap.getAllPlayer().size();
if(players >= max) {
MaplePacketCreator.serverNotice(1, "The event map is full!");
} else {
MaplePacketCreator.serverNotice(1, "You have been warped to the event map!");
c.getPlayer().changeMap(eventmap, eventmap.getPortal(0));
}
}
public boolean eventEnabled() {
return c.getChannelServer().getEventActive();
}
public int getMaxPlayers() {
return c.getChannelServer().getMaxPlayers();
}
public int getEventMap() {
return c.getChannelServer().getEventMap();
}
work 100%!
Well for me it doesn't 100% work ;)
PHP Code:
D:/Server/src/net/sf/odinms/scripting/npc/NPCConversationManager.java:365: cannot find symbol
symbol : class MapleMap
location: class net.sf.odinms.scripting.npc.NPCConversationManager
MapleMap eventmap = mmf.getMap(mapid);
D:/Server/src/net/sf/odinms/scripting/npc/NPCConversationManager.java:374: c has private access in net.sf.odinms.scripting.AbstractPlayerInteraction
c.getPlayer().changeMap(eventmap, eventmap.getPortal(0));
D:/Server/src/net/sf/odinms/scripting/npc/NPCConversationManager.java:379: c has private access in net.sf.odinms.scripting.AbstractPlayerInteraction
return c.getChannelServer().getEventActive();
D:/Server/src/net/sf/odinms/scripting/npc/NPCConversationManager.java:383: c has private access in net.sf.odinms.scripting.AbstractPlayerInteraction
return c.getChannelServer().getMaxPlayers();
D:/Server/src/net/sf/odinms/scripting/npc/NPCConversationManager.java:387: c has private access in net.sf.odinms.scripting.AbstractPlayerInteraction
return c.getChannelServer().getEventMap();
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
2 warnings
BUILD FAILED (total time: 4 seconds)
Re: [Release] Event System
Quote:
Originally Posted by
Faithless
Well for me it doesn't 100% work ;)
PHP Code:
D:/Server/src/net/sf/odinms/scripting/npc/NPCConversationManager.java:365: cannot find symbol
symbol : class MapleMap
location: class net.sf.odinms.scripting.npc.NPCConversationManager
MapleMap eventmap = mmf.getMap(mapid);
D:/Server/src/net/sf/odinms/scripting/npc/NPCConversationManager.java:374: c has private access in net.sf.odinms.scripting.AbstractPlayerInteraction
c.getPlayer().changeMap(eventmap, eventmap.getPortal(0));
D:/Server/src/net/sf/odinms/scripting/npc/NPCConversationManager.java:379: c has private access in net.sf.odinms.scripting.AbstractPlayerInteraction
return c.getChannelServer().getEventActive();
D:/Server/src/net/sf/odinms/scripting/npc/NPCConversationManager.java:383: c has private access in net.sf.odinms.scripting.AbstractPlayerInteraction
return c.getChannelServer().getMaxPlayers();
D:/Server/src/net/sf/odinms/scripting/npc/NPCConversationManager.java:387: c has private access in net.sf.odinms.scripting.AbstractPlayerInteraction
return c.getChannelServer().getEventMap();
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
2 warnings
BUILD FAILED (total time: 4 seconds)
Code:
private MapleClient c;
Inside NPCConversationManager.
Re: [Release] Event System
Quote:
Originally Posted by
MiniAxel
You're talking about other rules on a different forum. The forum said they don't allow leaks, and it can be removed as requested. Or if someone requests it not to be released there it won't be. Which is what I did.
i guess you dont understand what i said... its protected under GLP says evilleet. he continues to say thats if its under the GLP it must be shared or it will break the terms of the GLP. still with me?
by you saying to keep releases off valhalla is like us saying to keep releases off ragezone it volates the GLP. so there for take that bullshit off about not putting on valhalla for its protected under GLP. if ragezone wants to play this game of keep off valhalla than respect us and do the same for we say dont release on ragezone.
have a nice day. ^_^ read harder if you dont understand