Here is an example of a script that doesn't work. Ajira gave it too me:
NPC Code:
function onPlayerChats() {
if (player.chat == "skip quests")
setlevel2(utility.graal,30,30);
}
This doesn't work.
NPC Code:
if (playertouchsme){toweapons Tailor;} (followed by all the scripts)
This doesn't work.
Heres the stats:
NPC Code:
NPC-Server statistics:
Server uptime: 173 hrs 44 mins
Sleeptime (secs/min): 59378
Scriptime (last min): 60000
Connectiontries (last min): 1
NCs-in (byte/last min): 0
NCs-out (byte/last min): 0
GServer-in (byte/l.m.): 96
GServer-out (byte/l.m.): 0
Levels: 330
Active Levels: 7
NPCs: 284
Active NPCs: 4
DB-NPCs: 256
NPC-Placeholder: 65
Projectiles: 0
Players: 1
NC count: 1
GServers: 1
Top 20 of npcs taken most CPU time:
1. 0.444483334 % npcs[3] (in level ddoverworldd-9.nw at pos (5.9, 15.3))
2. 0.002275 % npcs[1] (in level dd_policestaff.nw at pos (30.5, 33))
3. 0.002026666 % npcs[8] (in level dd_policestaff.nw at pos (30.5, 33))
4. 0.002016666 % npcs[3] (in level dd_policestaff.nw at pos (45.5, 31.5))
GServer statistics:
Server uptime: 173 hrs 46 mins
Sleeptime (secs/min): 59908
Connectiontries (last min): 1
Players-in (byte/l.m.): 0
Players-out (byte/l.m.): 0
RCs-in (byte/last min): 5
RCs-out (byte/last min): 731
NPCServer-in (byte/l.m.): 0
NPCServer-out (byte/l.m.): 96
ServerList-in (byte/l.m.): 0
ServerList-out (byte/l.m.): 118
Player-avrg-in (bit/sec): 375
Player-avrg-out (bit/sec): 588
Levels: 0
NPCs: 0
Players: 0
RCs: 1
NPCServers: 1
[edit]Ok, I can work with the quotes. I can also blame Ajira.
If toweapons doesn't work at all, what should it be replaced with?[/edit]