Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-30-2005, 01:53 AM
Wormx2 Wormx2 is offline
Banned
Wormx2's Avatar
Join Date: Aug 2005
Posts: 69
Wormx2 is on a distinguished road
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]

Last edited by Wormx2; 12-30-2005 at 02:08 AM..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.