Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   little bit of scripting help please (https://forums.graalonline.com/forums/showthread.php?t=66046)

Andy_P2P 05-15-2006 09:12 AM

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


All times are GMT +2. The time now is 10:11 AM.

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