Whether there is a script which:
Will drop others money from each other npc's (after kill npc) e.g.
Zombies:
1
parse("spawnitem 66 "..object(id,"tilex").." "..object(id,"tiley"))
1
parse("spawnitem 68 "..object(id,"tilex").." "..object(id,"tiley"))
Scripts
NPC's Parametres
NPC's Parametres
1

parse("spawnitem 66 "..object(id,"tilex").." "..object(id,"tiley"))
parse("spawnitem 68 "..object(id,"tilex").." "..object(id,"tiley"))
objectdamage To get object ID and check possition the object by using
object and use
objectkill to drop the item at object possition addhook('objectkill', 'onObjectKill')
function onObjectKill(oid, pid)
if object(oid, 'player') == 1 then -- zombie
parse("spawnitem 66 "..object(oid,"tilex").." "..object(oid,"tiley"))
elseif object(oid, 'player') == 5 then -- soldier
parse("spawnitem 68 "..object(oid,"tilex").." "..object(oid,"tiley"))
end
end
addhook('objectdamage', 'onObjectDamage')
function onObjectKill(oid, dmg, src)
if dmg >= object(oid, 'health') then
if object(oid, 'player') == 1 then -- zombie
parse("spawnitem 66 "..object(oid,"tilex").." "..object(oid,"tiley"))
elseif object(oid, 'player') == 5 then -- soldier
parse("spawnitem 68 "..object(oid,"tilex").." "..object(oid,"tiley"))
end
end
end
object,
objectkill,
objectdamage parse('sv_soundpos "/2DMasters/training/splash.ogg" '..object(HUD,'x')..' '..object(HUD,'y')..'')
parse('sv_soundpos "/2DMasters/training/'..name..'" '..object(HUD,'x')..' '..object(HUD,'y')..'')
1
