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?