Add the CommandDefinition.
Printable View
My Error O.O
Code:init:
deps-jar:
Compiling 4 source files to C:\Documents and Settings\HP_Owner\My Documents\NetBeansProjects\ThePack\build\classes
C:\Documents and Settings\HP_Owner\Desktop\private server\The Pack Rev29\ThePack\src\net\sf\odinms\net\channel\ChannelServer.java:101: eventMap is already defined in net.sf.odinms.net.channel.ChannelServer
private int eventMap = 0;
C:\Documents and Settings\HP_Owner\Desktop\private server\The Pack Rev29\ThePack\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:418: eventWarp(int,int) is already defined in net.sf.odinms.scripting.npc.NPCConversationManager
public void eventWarp(final int mapid, int max) {
2 errors
BUILD FAILED (total time: 1 second)
You already have eventMap and eventWarp defined.o.o
not work for me,
i typed the command !event on 910000021 10
and Event Has Been Activated
after that i go click the npc script you made,
The event system is currently not active.
I used the command and it said it was activated.
When i clicked on the npc and click on 'Yes'
It gave me a error on this line.
Edit : Never mind i fixed it.Code:cm.eventWarp(cm.getEventMap(), cm.getMaxPlayers());
do we gotta compile it to make it work
hmm ? errors ?
http://i39.tinypic.com/jrbtc1.jpg
That should be placed to NPCConversationManager, correct ?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();
}
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%!
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.
Nice job. =]
great release
Nice release! =)
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)
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
*GPL
Read the Valhalla release forum rules before you continue.
Ohkay.
Valhalla Has a Rule Against Leaks.
Ragezone Does NOT have a Rule against Leaks.
Under the GPL, It can be rightfully released under both forums, and anywhere else.
The only thing keeping this release OFF of Valhalla is their own Rules. Nothing else.
Hope that cleared things up.
Still fails :(
PHP Code:init:
deps-jar:
Compiling 311 source files to D:\Server\src\build\classes
D:\Server\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:14: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API and may be removed in a future release
import com.sun.imageio.plugins.png.PNGImageReaderSpi;
D:\Server\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:47: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API and may be removed in a future release
ImageReaderSpi readerSpi = iioRegistry.getServiceProviderByClass(PNGImageReaderSpi.class);
^
D:\Server\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:367: cannot find symbol
symbol : class MapleMap
location: class net.sf.odinms.scripting.npc.NPCConversationManager
MapleMap eventmap = mmf.getMap(mapid);
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
2 warnings
My errorQuote:
init:
deps-clean:
Deleting directory C:\Users\Acer\Desktop\Maple External Folder\odinms\build
clean:
init:
deps-jar:
Created dir: C:\Users\Acer\Desktop\Maple External Folder\odinms\build\classes
Compiling 350 source files to C:\Users\Acer\Desktop\Maple External Folder\odinms\build\classes
C:\Users\Acer\Desktop\Maple External Folder\odinms\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:14: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API and may be removed in a future release
import com.sun.imageio.plugins.png.PNGImageReaderSpi;
C:\Users\Acer\Desktop\Maple External Folder\odinms\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:48: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API and may be removed in a future release
ImageReaderSpi readerSpi = iioRegistry.getServiceProviderByClass(PNGImageReaderSpi.class);
C:\Users\Acer\Desktop\Maple External Folder\odinms\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:28: getAllPlayer() has private access in net.sf.odinms.server.maps.MapleMap
int players = eventmap.getAllPlayer().size();
1 error
2 warnings
BUILD FAILED (total time: 4 seconds)
Look at the bolded word, its underlined on script
why not valhalla ?