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 10-16-2001, 06:51 AM
greeno greeno is offline
Registered User
Join Date: Oct 2001
Location: U.S.A.
Posts: 116
greeno is on a distinguished road
Send a message via AIM to greeno
Question 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!
__________________
-Stipo Swift-
"My Cat likes string cheese"
Reply With Quote
  #2  
Old 10-16-2001, 06:53 AM
SagaTCN SagaTCN is offline
Registered User
Join Date: Aug 2001
Location: West Michigan
Posts: 190
SagaTCN is on a distinguished road
Send a message via ICQ to SagaTCN Send a message via AIM to SagaTCN Send a message via Yahoo to SagaTCN
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
Reply With Quote
  #3  
Old 10-16-2001, 06:55 AM
greeno greeno is offline
Registered User
Join Date: Oct 2001
Location: U.S.A.
Posts: 116
greeno is on a distinguished road
Send a message via AIM to greeno
ok thanks, is that all?
__________________
-Stipo Swift-
"My Cat likes string cheese"
Reply With Quote
  #4  
Old 10-16-2001, 06:57 AM
greeno greeno is offline
Registered User
Join Date: Oct 2001
Location: U.S.A.
Posts: 116
greeno is on a distinguished road
Send a message via AIM to greeno
Unhappy

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...
__________________
-Stipo Swift-
"My Cat likes string cheese"
Reply With Quote
  #5  
Old 10-16-2001, 07:01 AM
greeno greeno is offline
Registered User
Join Date: Oct 2001
Location: U.S.A.
Posts: 116
greeno is on a distinguished road
Send a message via AIM to 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++;
}
__________________
-Stipo Swift-
"My Cat likes string cheese"
Reply With Quote
  #6  
Old 10-16-2001, 07:03 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
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
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #7  
Old 10-16-2001, 07:19 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
WAY too much stuff in it, you could make it into 1 simple command:
replaceani hurt,runic;
Reply With Quote
  #8  
Old 10-16-2001, 07:23 AM
greeno greeno is offline
Registered User
Join Date: Oct 2001
Location: U.S.A.
Posts: 116
greeno is on a distinguished road
Send a message via AIM to greeno
r u sure, i mean im getting somewhere right now...
__________________
-Stipo Swift-
"My Cat likes string cheese"
Reply With Quote
  #9  
Old 10-16-2001, 07:37 AM
greeno greeno is offline
Registered User
Join Date: Oct 2001
Location: U.S.A.
Posts: 116
greeno is on a distinguished road
Send a message via AIM to greeno
it doesnt work!!
__________________
-Stipo Swift-
"My Cat likes string cheese"
Reply With Quote
  #10  
Old 10-16-2001, 07:39 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
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!!!!!!!!
Reply With Quote
  #11  
Old 10-16-2001, 07:55 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to 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;
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #12  
Old 10-16-2001, 08:27 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #13  
Old 10-16-2001, 08:45 AM
greeno greeno is offline
Registered User
Join Date: Oct 2001
Location: U.S.A.
Posts: 116
greeno is on a distinguished road
Send a message via AIM to greeno
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?
__________________
-Stipo Swift-
"My Cat likes string cheese"
Reply With Quote
  #14  
Old 10-16-2001, 08:47 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
is that allowed on non-p2p??
Reply With Quote
  #15  
Old 10-16-2001, 11:26 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
yes only p2p can use replace gani..
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
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 09:51 AM.


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