Hello,
I wanted to make a NPC to complete bugged quests but I didn't discovered a useful way to program because... for example I want to make a NPC in all main towns like this: (pseudo code)
map,x,y,face,npc name,view id,{
// Once we click the npc, executing this...
msg "Hello I can make all yours bugged quest";
switch (faction) {
case Alliance:
switch (Class) {
case Paladin:
switch (select("Mission 1:Mission 2")) {
case 1:
if (Mission1)
msg "This mission is already done.";
else {
// Give all mission1 reward
Mission1 = 1; // Mission done
}
break;
case 2:
if (Mission2)
msg "This mission is already done.";
else {
// Give all mission2 reward
Mission2 = 1; // Mission done
}
break;
}
break;
case ...:
break;
}
break;
case Horde:
switch (Class) {
case Paladin:
break;
case ...:
break;
}
}
end;
}
// Duplicating NPCs in other towns/maps
duplicate (npc name) map,x,y,face,viewid
This is an example what I want to do, but I didn't know where to post if in scriptdev2 or udb whatever, I decided to post here because is the main core to start programming...