NPC for getqf() and setqf()

10/16/2013 10:29 poXavincS#1
Hi guys, I want do this;

Code:
npc.setqf("NPCode","FlagName",Value)
npc.getqf("NPCode","FlagName") --return Value
How we do this?

Thank you..
Good works.
10/16/2013 10:46 .Shōgun#2
I don't understand what you want to do, NPCs don't have quest flags?
10/16/2013 10:53 .ProjektX²#3
Why should a npc need a questflag?
This is what you can do:

pc.setqf('value',1)
pc.getqf('value') -> returns 1

pc.setf('questname','value',2)
pc.getf('questname','value') -> returns 2

Or if you rly need such a function, then save the variables of the npc in a .txt data on your server.
Then you can get and set variables.
10/16/2013 18:37 poXavincS#4
Quote:
Originally Posted by Uncorrupted View Post
I don't understand what you want to do, NPCs don't have quest flags?
My mysql function -> npc_get_hp(mob_id)

PHP Code:
npc.setqf("691","test",npc_get_hp(591))
if 
npc.getqf("691","test") <= //691 is dead? 
Killey npcs by player on as individual.