Forum

> > Trash > Help Me PlZ :D
Forums overviewTrash overviewLog in to reply

English Help Me PlZ :D

1 reply
To the start Previous 1 Next To the start

moved Help Me PlZ :D

Lotteria
User Off Offline

Quote
Now I am Make A mod .This Is Diablo Mod.But I need some lua script.I just need one lua script to complete it
Somebody can make or give me lua script when I kill NPC I get Some Money.
Help Me Plz

Admin/mod comment

trashed because of pointless title

old Re: Help Me PlZ :D

Surplus
User Off Offline

Quote
1
2
3
4
5
6
7
8
npcmoney=300 --change this to the money you want one NPC to give.

addhook("objectkill","npckill")
function npckill(id,playerid)
     if object(id,"type")==30 then
          parse("setmoney "..playerid.." "..(player(playerid,"money")+npcmoney))
     end
end

Dunno if this works

EDIT:

It does e_e
To the start Previous 1 Next To the start
Log in to replyTrash overviewForums overview