Well really nice guide but... where we choose npc name and picture? im sorry for noob question,i may have missed somewhere in guide,its so wordy but really good! can you help me with my question? :D
Printable View
Well really nice guide but... where we choose npc name and picture? im sorry for noob question,i may have missed somewhere in guide,its so wordy but really good! can you help me with my question? :D
can someone help..? please? also i tried to change in "String.wz" ,didnt work,do i need to compile in wz also? o.o and if yes,where is the "dist" folder for that ?
Lol,the random script you did doesn't even work. Why is it so? And any idea about this:
PHP Code:var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) { // close after all
if (cm.getMeso() >= 50000000) {
cm.sendYesNo("Do you want to buy an Eye of Fire? (50,000,000 Mesos)");
}
else {
cm.sendOk("You need 50,000,000 Mesos to buy anything here.");
cm.dispose();
}
if (status = 1) {
cm.gainMeso(-50000000);
cm.gainItem(4001017,1);
cm.dispose();
}
}
Thats awsome but still hard for me =(
Code:var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (cm.getMeso() >= 50000000) {
cm.sendYesNo("Do you want to buy an Eye of Fire? (50,000,000 Mesos)");
}
else {
cm.sendOk("You need 50,000,000 Mesos to buy anything here.");
cm.dispose();
} Where it says mode = 0. I'm not sure if it's mode or status. Same thing with the next one.
if (mode = 0) {
cm. dispose();
}
if (mode = 1) {
cm.gainMeso(-50000000);
cm.gainItem(4001017,1);
cm.dispose();
}
Try that, Lejgolacsz. Hope it helps.
Note: I've been looking over coding for a couple of days. Not too experienced. If that doesn't work, please don't flame, I'm just trying to help
http://i84.photobucket.com/albums/k3...pleserver4.jpg
i get stuck at the character screen still
i've done everything correctly, from mysql to wz files
help please !
I'm a pro coder, and i have no idea what that meant.....
and to think i get paid to code NPCs..
Wow awesome guide!!but for npcconversationmanager can we add cm.gainrandequip?
Cuz xotic source doesnt have it
1. Yes, of course you're a pro coder. *cough*
2. If you have idea what that meant and you 'get paid to code NPCs' then you're a fucking idiot
3. The person who pays you to SCRIPT NPCs, yes, SCRIPT YOU FAGGOT, CODING != SCRIPTING, anyways, the person who pays you to script NPCs is also a fucking idiot
4. gud guide
How about when using cm.ModifyNX in your NPC script? I already have that function added in the NPCConversationManager
I know it's getPlayer().modifyCSPoints(type, amount); but what do you put in for type? just put Paypal? or soemthing liket hat?
when i tried to make one i click on the NPC and it Dcs me any ideas?