Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   runic npc... i need help (https://forums.graalonline.com/forums/showthread.php?t=14722)

greeno 10-16-2001 06:51 AM

runic npc... i need help
 
i cant figure this out, when i put
setani runic.gani;

i get this
Error: Expected format string,string

help me please, i know this will be helpful in a server!

SagaTCN 10-16-2001 06:53 AM

I believe the second string is params. I doubt you'll need params, so simply use: setani gani_name,; (notice the comma before the semi-colon). -Yin

greeno 10-16-2001 06:55 AM

ok thanks, is that all?

greeno 10-16-2001 06:57 AM

now i need to know what it is called when you are hit by a bomb... and arrow,


and while your at it can you tell me why it doesnt play the gani?
it doesnt freezeplayer or play the gani, im confused here... :confused:

greeno 10-16-2001 07:01 AM

heres my whole npc so far... tell me if im wrong in doing this so far...
// NPC made by Stipo, Thief of -Thieves-
if (created) {
setimg yellowspellbook.gif;
}
if (runicbought) {
toweapons Runic;
}

if (weaponfired && peltwithbush){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && peltwithvase){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && peltwithstone){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && peltwithsign){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && peltwithnpc){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && peltwithblackstone){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && playershot){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && playerexploded){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}

joseyisleet 10-16-2001 07:03 AM

Look at the commands.rtf file it explains it quite easily.
setani ganiname,direction;

Do not use .gani at the end of the name, for single direction gani's use
setani ganiname,;
Gani's are one of the simplest things to set up ;)

Python523 10-16-2001 07:19 AM

WAY too much stuff in it, you could make it into 1 simple command:
replaceani hurt,runic;

greeno 10-16-2001 07:23 AM

r u sure, i mean im getting somewhere right now...

greeno 10-16-2001 07:37 AM

it doesnt work!!:(

btedji 10-16-2001 07:39 AM

Quote:

Originally posted by greeno
heres my whole npc so far... tell me if im wrong in doing this so far...
// NPC made by Stipo, Thief of -Thieves-
if (created) {
setimg yellowspellbook.gif;
}
if (runicbought) {
toweapons Runic;
}

if (weaponfired && peltwithbush){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && peltwithvase){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && peltwithstone){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && peltwithsign){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && peltwithnpc){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && peltwithblackstone){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && playershot){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}
if (weaponfired && playerexploded){
setani runic.gani,;
freezeplayer 1;
playerhearts++;
}

*cries*

use || which means 'or' instead of all those commands!!!!!!!!

BocoC 10-16-2001 07:55 AM

The problem is that you have to fire the weapon at the EXACT second you get hit. Just do something like this:

replaceani hurt,runic;

Python523 10-16-2001 08:27 AM

Quote:

Originally posted by BocoC
The problem is that you have to fire the weapon at the EXACT second you get hit. Just do something like this:

replaceani hurt,runic;

He's Right, why don't you do something like
if (playerchats && strequals(#c,Buy Runic)) {set boughtrunic;}
if (boughtrunic) {replaceani hurt,runic;}
that should work fine

greeno 10-16-2001 08:45 AM

its starting to work, but when it plays the gani, it has like (_)b3r lag!! and it flashes like your being hurt.. how do u disable flashing and moving when being hurt?

btedji 10-16-2001 08:47 AM

is that allowed on non-p2p??

dragoonvenganc 10-16-2001 11:26 AM

yes only p2p can use replace gani..


All times are GMT +2. The time now is 04:39 PM.

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