make a resetmap command for NPC
i need to make a resetmap command for NPC but nor for his map, i mean by id like that
cm.resetmap(100000000);
i made for the map he is found but i need another map to reset
tnx
Re: make a resetmap command for NPC
What does resetMap function do?
Re: make a resetmap command for NPC
Put this in maplemap.java if you dont have it:
PHP Code:
public final void resetFully() {
resetFully(true);
}
public final void resetFully(final boolean respawn) {
killAllMonsters(false);
reloadReactors();
removeDrops();
resetNPCs();
resetSpawns();
resetDisconnected();
endSpeedRun();
cancelSquadSchedule(true);
resetPortals();
environment.clear();
if (respawn) {
respawn(true);
}
}
and this into npcconversationmanager:
PHP Code:
public void resetMap(int id) {
getPlayer().getMap().resetFully(id);
}
Now the method should work in npc scripts.
EZ PZ DAWGGGGGGGGG
Re: make a resetmap command for NPC
like that
PHP Code:
public final void resetFully(final boolean respawn) {
killAllMonsters(false);
reloadReactors();
removeDrops();
resetNPCs();
resetSpawns();
resetDisconnected();
endSpeedRun();
cancelSquadSchedule(true);
resetPortals();
environment.clear();
if (respawn) {
respawn(true);
}
}
Re: make a resetmap command for NPC
Quote:
Originally Posted by
WantThat
like that
PHP Code:
public final void resetFully(final boolean respawn) {
killAllMonsters(false);
reloadReactors();
removeDrops();
resetNPCs();
resetSpawns();
resetDisconnected();
endSpeedRun();
cancelSquadSchedule(true);
resetPortals();
environment.clear();
if (respawn) {
respawn(true);
}
}
Exactly what I posted...
Re: make a resetmap command for NPC
Quote:
Originally Posted by
lordpeter
Exactly what I posted...
why is it going to work?
where you told the function to reset the map on the id O.o
Re: make a resetmap command for NPC
Quote:
Originally Posted by
WantThat
why is it going to work?
where you told the function to reset the map on the id O.o
I don't understand what you just said but i'm going to repost it just for you:
Put this in maplemap.java if you dont have it:
PHP Code:
public final void resetFully() {
resetFully(true);
}
public final void resetFully(final boolean respawn) {
killAllMonsters(false);
reloadReactors();
removeDrops();
resetNPCs();
resetSpawns();
resetDisconnected();
endSpeedRun();
cancelSquadSchedule(true);
resetPortals();
environment.clear();
if (respawn) {
respawn(true);
}
}
and this into npcconversationmanager:
PHP Code:
public void resetMap(int id) {
getPlayer().getMap().resetFully(id);
}
Now the method should work in npc scripts.
Re: make a resetmap command for NPC
Quote:
Originally Posted by
lordpeter
I don't understand what you just said but i'm going to repost it just for you:
Put this in maplemap.java if you dont have it:
PHP Code:
public final void resetFully() {
resetFully(true);
}
public final void resetFully(final boolean respawn) {
killAllMonsters(false);
reloadReactors();
removeDrops();
resetNPCs();
resetSpawns();
resetDisconnected();
endSpeedRun();
cancelSquadSchedule(true);
resetPortals();
environment.clear();
if (respawn) {
respawn(true);
}
}
and this into npcconversationmanager:
PHP Code:
public void resetMap(int id) {
getPlayer().getMap().resetFully(id);
}
Now the method should work in npc scripts.
i have that but the finction resetfully doesnt get an int value so how you made can make it get with id in the barraces
but never mind i made it myself
Re: make a resetmap command for NPC
Quote:
Originally Posted by
WantThat
i have that but the finction resetfully doesnt get an int value so how you made can make it get with id in the barraces
but never mind i made it myself
Do you only read the first php code lol... The second thing I posted, what you put into npcconversationmanager is what controls the id buddy
Re: make a resetmap command for NPC
Quote:
Originally Posted by
lordpeter
Do you only read the first php code lol... The second thing I posted, what you put into npcconversationmanager is what controls the id buddy
hh lol but look the function resetfully() get nothing
so how in the second php he get int value?
look what i wrote:
PHP Code:
public void resetMapID(final int mapid) {
getMap(mapid).resetFully();
}
Re: make a resetmap command for NPC
Quote:
Originally Posted by
WantThat
hh lol but look the function resetfully() get nothing
so how in the second php he get int value?
look what i wrote:
PHP Code:
public void resetMapID(final int mapid) {
getMap(mapid).resetFully();
}
I'm going to quit helping you. I gave you the solution 3 times.
Re: make a resetmap command for NPC
Quote:
Originally Posted by
lordpeter
I don't understand what you just said but i'm going to repost it just for you:
Put this in maplemap.java if you dont have it:
PHP Code:
public final void resetFully() {
resetFully(true);
}
public final void resetFully(final boolean respawn) {
killAllMonsters(false);
reloadReactors();
removeDrops();
resetNPCs();
resetSpawns();
resetDisconnected();
endSpeedRun();
cancelSquadSchedule(true);
resetPortals();
environment.clear();
if (respawn) {
respawn(true);
}
}
and this into npcconversationmanager:
PHP Code:
public void resetMap(int id) {
getPlayer().getMap().resetFully(id);
}
Now the method should work in npc scripts.
Quote:
Originally Posted by
WantThat
hh lol but look the function resetfully() get nothing
so how in the second php he get int value?
look what i wrote:
PHP Code:
public void resetMapID(final int mapid) {
getMap(mapid).resetFully();
}
I think this is what he meant:
This is your code:
PHP Code:
public void resetMap(int id) {
getPlayer().getMap().resetFully(id);
}
but the method in MapleMap dont have the method that resetFully(int id), yours is resetFully(boolean)
Re: make a resetmap command for NPC
Quote:
Originally Posted by
hecari
I think this is what he meant:
This is your code:
PHP Code:
public void resetMap(int id) {
getPlayer().getMap().resetFully(id);
}
but the method in MapleMap dont have the method that resetFully(int id), yours is resetFully(boolean)
I think they should make some sort of english test before registering for this forum...
Re: make a resetmap command for NPC
Quote:
Originally Posted by
lordpeter
I think they should make some sort of english test before registering for this forum...
Agreed. You posted the solution and he's still being foreign.
Actually I understand what he means now. He means for the NPC to let you enter the value so you don't have to be in the map to reset it. In that case, he'll need to make sure his NPC asks the user for a map ID.
Re: make a resetmap command for NPC
Quote:
Originally Posted by
aikg2k3
Agreed. You posted the solution and he's still being foreign.
ikrrr