Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Gani Checking (https://forums.graalonline.com/forums/showthread.php?t=13070)

ArmadeusWarlock 09-27-2001 07:38 AM

Gani Checking
 
How do I check the current gani so something happens ONLY if I use that gani? Ive tried it with strequals and #m but that doesnt work. Can someone help?

nyghtGT 09-27-2001 08:03 AM

command
 
NPC Code:

if (playerani) {
}


that may be it ....

KJS 09-27-2001 09:34 AM

Re: Gani Checking
 
Quote:

Originally posted by ArmadeusWarlock
How do I check the current gani so something happens ONLY if I use that gani? Ive tried it with strequals and #m but that doesnt work. Can someone help?
the gani of the player or npc???

KJS 09-27-2001 07:07 PM

Quote:

Originally posted by Kaimetsu
#m should work.
unless if he is trying to find the gani of a npc... I forgot what it was to do that but I look into it...

Shard_IceFire 09-27-2001 08:44 PM

wouldn't you just do like:
NPC Code:

if (strequals(#m,idle)) {
//do stuff
}


KJS 09-28-2001 02:47 AM

Quote:

Originally posted by Kaimetsu


#m(-1)

I also think for npc server there is a
#(letter)

cuz I remeber slp asking stefan once and then slp told me but I never remebered it...

KJS 09-28-2001 02:51 AM

Quote:

Originally posted by Kaimetsu


I've never heard of that. Could you give an example of what you mean by #(letter)?

well it wouldn't accually be

#(letter)

I mean like
#m (that would be a letter)

I dont konw what the letter is that you put there...

#<a letter goes here but I dont remeber what one>

(I should have said it like that)

KJS 09-28-2001 02:51 AM

mabie ask slp... he might know...

he is the one who told me..

ArmadeusWarlock 09-28-2001 04:31 AM

eek
 
Ok, Here is what I tried, FOR TESTING:

if(strequals(#m,sword)){
setplayerprop #c,Hi;
}

I was doing that to test something to work on something else, and it doesnt work.(testing to see if this would work)
Can someone please say why it doesnt?

ArmadeusWarlock 09-28-2001 04:35 AM

and
 
To test to make sure that it read the gani WITHOUT adding .gani to the end, I made a simple script:

if(playerenters){
message #m;
}

and the game read it as sword, not sword.gani, so i now I dont need .gani at the end of it

KJS 09-28-2001 04:56 AM

Quote:

Originally posted by Kaimetsu


Could be any number of things, like #L or whatever.

yea I know there could be like
62 different possablilities (its case censitive)

SSj_Link 09-28-2001 05:59 AM

Maybe...
 
Im not all god like at scripting like Kai, but maybe somethin like

if (npcgani(gani)) {
actions;
}


Dont yell at me if it dosnt work

-Freaky-


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

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