Quote:
Originally posted by Python523
toweapons works clientsided, addweapon works serversided, also dont do any serversided scripts inside of weapons since they are clientsided
|
This is pretty much completely incorrect. toweapons causes the weapon to be added to the weapon database. You can put serverside scripts in weapons, but you have to do it a weird way:
serverside part of the weapon:
NPC Code:
if (actionserverside) {
setlevel2 leveltest.graal,30,30;
}
Clientside part of the weapon:
NPC Code:
triggeraction 0,0,serverside,God Ring,warpplayer,#v(this.cursor),;