Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 03-05-2002, 06:03 PM
cell424 cell424 is offline
Registered User
Join Date: Mar 2001
Location: USA/PA
Posts: 184
cell424 is on a distinguished road
Send a message via AIM to cell424
k Thanks alot, so if I got this all right I guess when you first put a NPC up you use toweapons, go to the item and touch it so it adds itself to the database, then change it to addweapon for everyone else. k I think I got it. Here is one of my scripts, would this work?

NPC Code:

// NPC made by Trunks (Owner)
//#CLIENTSIDE
if (playerenters) {
toweapons *System;
}

if (isweapon) {
//Map Systems
if (!startswith(sidi_miningcaves,#L)) {
setmap sidimap.png,sidimap.txt,x,y;
}
}
//Shoe System
if (isweapon) {
if (!madeshoes && !strequals(#C3,orange)) {
setplayerprop #C3, orange;
}
else
timeout=0;
setplayerprop #C3, #C3;

if (!madeshoes && isonmap) {
timeout=10;
}

if (timeout && isonmap) {
hurt 1;
timeout=10;
say2 You really should make yourself#ba pair of shoes before you really#bhurt yourself..
}
}



NPC Code:

//#CLIENTSIDE
if (playerenters) {
toweapons Bow;
hide;
}
if (weaponfired && playerdarts>0) {
freezeplayer 0.3;
setani shoot,wbow1.gif;
timeout=0.25;
}

if (timeout && !fireonhorse) {
shootarrow playerdir;
playerdarts = playerdarts-1;
}



NPC Code:

//#CLIENTSIDE
if (playerenters) {
toweapons Bomb;
hide;
}
if (weaponfired && playerbombs>0) {
if (playerdir=0) {
putbomb 1,playerx+0.5,playery-1;
}
if (playerdir=1) {
putbomb 1,playerx-1.5,playery+1;
}
if (playerdir=2) {
putbomb 1,playerx+0.5,playery+2.5;
}
if (playerdir=3) {
putbomb 1,playerx+2.5,playery+1;
}
playerbombs=playerbombs-1;
}




Would they work online in a P2P Server?
__________________
Trunks

Last edited by cell424; 03-05-2002 at 06:27 PM..
 


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 12:46 PM.


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