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 02-12-2006, 12:51 AM
ArushenP2P ArushenP2P is offline
Graal Developer
ArushenP2P's Avatar
Join Date: Feb 2006
Location: Oakland, Calif. USA
Posts: 336
ArushenP2P is on a distinguished road
Send a message via AIM to ArushenP2P
NPC Code:

if (actionserverside) {
if (strequals(#p(0),drop)) {
setani kneel1,;
putnpc2 playerx+.5+vecx(playerdir)*1.5,playery+1.25+vecy(p layerdir)*1.5,{setimg anzell-blank-icon.png;if (playertouchsme) { setani lift,;freezeplayer 1;addweapon Weapons/One Handed Rapier;destroy;}};
}
}
//#CLIENTSIDE
if (created) {
this.rapier = 0;
}
if (weaponfired && this.rapier == 0) {
// Unsheathed stuff below
setani anzell_weapon-arurapier-idle,;
replaceani idle,anzell_weapon-arurapier-idle;
replaceani walk,anzell_weapon-arurapier-walk;
replaceani sit,sit;
replaceani swim,swim;
replaceani sleep,sleep;
replaceani sword,anzell_weapon-arurapier-stab;
replaceani push,push;
replaceani pull,pull;
replaceani lift,lift;
replaceani hurt,hurt;
replaceani grab,grab;
this.rapier = 1;
sleep 0.05;
}
if (keypressed&&keydown2(keycode(a),true) && this.rapier == 1) {
setani idle,;
replaceani idle,idle;
replaceani walk,walk;
replaceani sit,sit;
replaceani swim,swim;
replaceani sleep,sleep;
replaceani sword,anzell_punch;
replaceani push,push;
replaceani pull,pull;
replaceani lift,lift;
replaceani hurt,hurt;
replaceani grab,grab;
this.rapier = 0;
sleep 0.05;
}

__________________


Your abilities to create wonder relies on your level of imagination.

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 06:26 PM.


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