im trying to do something in AI and i keep getting erros in the NPC server as soon as AI is loaded, as if the ai.obj gets corrupted, its a huge stack(after compiling it to .obj and adding the compiled code) if i use the s0 variable but if i remove that variable and use hardcoded strings it works, this code is simple i just want to test something where i manage a string every time MENU_SELECTED is invoked.
What i expected this code to do was basically the NPC would say the string "l2Bbuffer002.htm". (no sense i know, but i cut the code to figure what was corrupting it)
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hoodservices
https://campsite.bio/utchihaamkt
Storm War
Nuestro servidor cuenta con el sistema de subclase acumulativa. Al alcanzar el nivel 75 en cada subclase, se crea el personaje y se obtiene la primera y segunda profesión. Al llegar al nivel 75, se debe hacer la subclase, repitiendo este proceso tres veces. La última subclase será la principal, que es la que debe avanzar a la tercera profesión y con la cual se participará en las olimpiadas. Cabe recordar que no se puede cambiar ninguna subclase una vez elegida. Las subclases se realizan en el NPC ubicado en Giran.
https://www.storm-war.com.ar/
Question
caganitas
Hi,
im trying to do something in AI and i keep getting erros in the NPC server as soon as AI is loaded, as if the ai.obj gets corrupted, its a huge stack(after compiling it to .obj and adding the compiled code) if i use the s0 variable but if i remove that variable and use hardcoded strings it works, this code is simple i just want to test something where i manage a string every time MENU_SELECTED is invoked.
What i expected this code to do was basically the NPC would say the string "l2Bbuffer002.htm". (no sense i know, but i cut the code to figure what was corrupting it)
The NASC code
class 1 buffer : default_npc
{
parameter:
string fnHi = "l2Bbuffer001.htm";
string page = "l2Bbuffer001.htm";
handler:
EventHandler TALKED(talker) {
myself::ShowPage(talker,fnHi);
return;
}
EventHandler MENU_SELECTED(ask,reply,item,action_id,s0) {
Edited by caganitass0 = "l2Bbuffer002.htm";
myself::Say(s0);
return;
}//event
}//class
Link to comment
Share on other sites
9 answers to this question
Recommended Posts