Hello.
Well, as the hard way is to make NPCS, i decided to put here this idea, example 1;
This example is just for allowing the user to put actions into the parameter zone;
Second one (Re-structured npc system).
Thats just an idea, and with it, it wont by necesary the uses of scripts.
Maybe it need more perfection, but for atleast it looks MORE EASY to make npcs.
Well, as the hard way is to make NPCS, i decided to put here this idea, example 1;
This example is just for allowing the user to put actions into the parameter zone;
Lua:
<parameter key="message_farewell" value="Bye." />
<parameter key="message_greet" value="Hello |PLAYERNAME!." />
<parameter key="message_idletimeout" value="Dont waste my time." />
<parameter key="keywords" value="help;burn;item" />
<parameter key="keyword_reply1",
if PlayerHeathl=> 65 then
doPlayerAddHealth(cid, 65)
value="Oh your hurt my child, let me take care of you." />
end
<parameter key="keyword_reply2",
doSetPlayerCondition(poison, 1, 60000)
value="Oh no! Your poisoned!" />
<parameter key="keyword_reply3",
doPlayerAddItem(cid, 2160, 100)
value="There you got!" />
Second one (Re-structured npc system).
Lua:
<npc name="Mac" script="data/npc/scripts/default.lua" autowalk="25" floorchange="25" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="12" head="20" body="100" legs="50" feet="99" corpse="2212"/>
<parameter key="message_farewell" value="Bye." />
<parameter key="message_greet" value="Hello |PLAYERNAME!." />
<parameter key="message_idletimeout" value="Dont waste my time." />
<script> --Start script
<keywords>
<parameter text="quest">
if getPLayerStorageValue(cid, 6777) == -1 then
doSetPlayerStorageValue(cid, 6777, 2)
say = ("It seems you get into my bedroom huh!, now try to get into my sisters one!")
else
...
end
</parameter>
</keywords>
</script> --Close script
</npc>
Thats just an idea, and with it, it wont by necesary the uses of scripts.
Maybe it need more perfection, but for atleast it looks MORE EASY to make npcs.
Last edited: