![]() |
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..
|
| 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.