![]() |
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! |
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
|
ok thanks, is that all?
|
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: |
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++; } |
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 ;) |
WAY too much stuff in it, you could make it into 1 simple command:
replaceani hurt,runic; |
r u sure, i mean im getting somewhere right now...
|
it doesnt work!!:(
|
Quote:
use || which means 'or' instead of all those commands!!!!!!!! |
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; |
Quote:
if (playerchats && strequals(#c,Buy Runic)) {set boughtrunic;} if (boughtrunic) {replaceani hurt,runic;} that should work fine |
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?
|
is that allowed on non-p2p??
|
yes only p2p can use replace gani..
|
Quote:
Well, the best bet, if Stefan aloows it, would be to replace the hurt.gani (delete it and rename the runic.gani hurt.gani, it would probably work that way w/o any scripting at all) |
no you dont understand my way of thinking, i dont want to change the gani all together, i want to make it so that you get this npc on a quest and you can avoid getting hurt by bombs arrows and throwing things, in other words your invincible except for swords but i just need it to stop flashing and laging now and ill be fine with it, any suggestions? anyone?
|
hum thinking..
and hey if u just delete it and rename ruinic thing then every body would have to do it or it would not work. and when they go on other servers they would then have to get the original hurt.gani. HEre is on way. in the bows and stuff u could do i think that checks a flag invincible. and if invinciable arrows do not hurt. and i am not sure about bombs .. on npcs u could do if (exploded) then what ever if invinciable does not do any thing to them.. but on players i do not know.. |
its fine so far, i just need to stop the flashing, and be able to be hurt by swords
|
if(anihurt){setani newhurt}
something like that will work?? |
Quote:
setani idle,; //or whatever its called, to lazy to check.. playerhearts=this.oldhearts; //and then somewhere else, maybe in a timeout, maybe in a weaponfired if thats what you want. } Maybe this is what you were thinking? |
if(strequals(#m,hurt)){setani runic,;}
something like that |
i dunno, they sound good but HOW DO YOU STOP FLASHING FOR IT, sorry if you feel offended by me yelling but thats the only problem
|
Quote:
|
if (timeout){
if (strequals(#m,hurt){sleep .05;setani runic,playerdirection; timeout =.05; } it's something like that, BUT that would replace it even if you're hit by a sword, so you should use your last code. Except put it in a time out and don't use if (weaponfired&&waspeltbybush){} or whatever. When it does that they'd have to use the NPC the exact moment that they would be getting hit. So use something like: if (playerenters){toweapons Ijustwrotethisintheforums; timeout=.05; } if (timeout&&isweapon&&waspeltbybush||waspeltbyvase){ blah blah blah; timeout=.05; } |
Maybe you could do this, time how long the hurt gani is, say it is 3 seconds, do
if (whatever you have here) {sleep3; setani runic,;} you could do that |
Quote:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 10:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.