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 05-15-2006, 09:12 AM
Andy_P2P Andy_P2P is offline
Registered User
Join Date: May 2005
Location: In a hole
Posts: 3
Andy_P2P is on a distinguished road
Question little bit of scripting help please

ok maloria hope you guys dont mind me useing your ganis on this post there not the same on the server im at but im learning xD anyhow
im trying to make a spell but i cant get the mousex and y thing like mal i tryed but cant seem to get it heres my code so far
NPC Code:

//The Spell Test
//#CLIENTSIDE
if (created) {
unset client.andyspon;
}
if (weaponfired&&!client.andyspon) {
setani mal_darkball_arm,;
replaceani idle,mal_darkball_idle;
replaceani walk,mal_darkball_walk;
replaceani sword,mal_darkball_shoot;
sleep .1;
set client.andyspon;
}
if (weaponfired&&client.andyspon) {
//freezeplayer 0.8;
setani idle,;
replaceani idle,idle;
replaceani walk,walk;
replaceani sword,sword;
sleep .1;
unset client.andyspon;
}


ok i know the ammo is mal_darkball well if thats so how do i get that to be casted like where i click like on mal i want a spell system like mal thats it if allowed im sure if i could get the spells i could make my own type of weapons system but to the point how do i get the mal_darkball to go from player to where i click and if it hits player it hurts im sure its something like
NPC Code:

//The System Test
if (actionprojectile && strequals(#p(0),darkhit) && !strequals(#a,#p(1)) && !playerpaused && !playermap && !strequals(#m,mal_darkball))
{
if (nopkzone) {freezeplayer 0.5;}else{
setani hurt,; blah blah blah}

or something like that on a system like weapon than on the spell its like on Spell Test with the mousex and y stuff but please help thanks
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 11:11 AM.


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