MoneyDWHook = GetExp_PKM
GetExp_PKM = function( dead , atk )
MoneyDWHook(dead,atk)
local DeadMonster = GetChaID(dead)
if(GetChaMapName(atk) == "puzzleworld" or GetChaMapName(atk) == "puzzleworld2") then
if(DeadMonster == 669 or DeadMonster == 670 or DeadMonster == 671 or DeadMonster == 672 or DeadMonster == 725 or DeadMonster == 726)then
local chamoney = GetChaAttr( atk , ATTR_GD )
local moneyadd = 1000000
chamoney = chamoney + moneyadd
SetCharaAttr( chamoney, atk , ATTR_GD )
SyncChar(atk,4)
SystemNotice( atk, "You have Recieved 1 Million Gold From "..GetChaDefaultName(dead) )
end
elseif(GetChaMapName(atk) == "darkswamp")then
if(DeadMonster == 696 or DeadMonster == 695 or DeadMonster == 698 or DeadMonster == 697)then
local chamoney = GetChaAttr( atk , ATTR_GD )
local moneyadd = 500000
chamoney = chamoney + moneyadd
SetCharaAttr( chamoney, atk , ATTR_GD )
SyncChar(atk,4)
SystemNotice( atk, "You have Recieved 500k Gold From "..GetChaDefaultName(dead) )
end
end
end
This should work @Faller