Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
Should be MonsterDieCustomBonus(aIndex,bIndex) right since you set it in MonsterBonus.lua ?
Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
Quote:
Originally Posted by
SmileYzn
Yes, need
@SmileYzn, it doesn't works anyway.
I added
Quote:
require("MonsterBonus")
into Main.lua, and here is the script:
MonsterBonus.lua
Quote:
function MonsterDieBonus(PlayerIndex,MonsterIndex)
-- Points
local WCoinC = 0
local WCoinP = 0
local GPoint = 0
-- Get Victim Monster Class
local MonsterClass = GetObjectClass(MonsterIndex)
-- Spider (10 WcoinC) (Repeat with a different Monster id)
if(MonsterClass == 3) then
WCoinC = WCoinC + 10
end
-- If any points is given, then send to CashShop
if((WCoin > 0) or (WCoinP > 0) or (GPoint > 0)) then
CashShopAddPoint(PlayerIndex,WCoinC,WoinP,GPoint)
end
end
Main.lua
Quote:
function OnMonsterDie(aIndex,bIndex)
-----------------------------------------
-- Called after a monster dies.
-- aIndex = Monster index (victim).
-- bIndex = User index (killer).
-----------------------------------------
ScriptLoader_OnMonsterDie(aIndex,bIndex)
-----------------------------------------
-- Call the function of MonsterBonus.lua
MonsterDieBonus(PlayerIndex,MonsterIndex)
end
Both
Quote:
MonsterDieBonus(PlayerIndex,MonsterIndex)
or
Quote:
MonsterDieBonus(aIndex,bIndex)
don't work.
Do you have any idea?
Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
1. It is a GMO client agility bug, i did not remember exactly what is.
2. Is a bug lol??
3. Crashes? Yes im working on it, it is related with Lua Script system, i'm also fixing log system from lua.
Thanks for report it.
@phgkhh
Duo the logs in script system are broken, i did not seen these bugs, but GetObjectClass seems to be not working. I will relase a fixed version of this.
Ps. I'm making some changes in script system right now. Thanks again
Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
anyone have maker of this release? what is the compatible maker of this server files?
Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
Quote:
Originally Posted by
clerigz
anyone have maker of this release? what is the compatible maker of this server files?
An editor that can edit s4 will work on s5.
Try this https://www.mediafire.com/file/7exim...3a/MuMaker.rar
Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
Hi guys recommended anti hack for this one?
Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
@All MuServer and client are updated!
I hope we will not have any crash anymore.
I also fixed custom bows in client side, also script system and log system from gameserver.
@phgkhh
Sorry for delay, but you can use now script system to make custom bonus for some monsters, here is how you can do it now:
1. At Main.lua, add require("Bonus") after require("Util") line.
2. Put this Bonus.lua script file at script folder:
Code:
function OnMonsterDieBonus(MonsterIndex,PlayerIndex)
-- Result false until some monster death
local Result = false
-- Get Monster Class
local MonsterClass = GetObjectClass(MonsterIndex)
-- Kundun Demon
if(MonsterClass == 275) then
Result = true
CashShopAddPoint(PlayerIndex,300,0,0)
NoticeSendToAll(0,string.format("%s killed %s",GetObjectName(PlayerIndex),GetObjectName(MonsterIndex)))
end
-- If any points is given, then a shitty effect
if Result ~= false then
FireworksSend(PlayerIndex,GetObjectX(PlayerIndex),GetObjectY(PlayerIndex))
end
end
ScriptLoader_AddOnMonsterDie("OnMonsterDieBonus")
I tested and works in this update. Thanks for testing it
Ps. Check changelogs folder at MuServer for changelogs details.
Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
@SmileYzn,
It work perfectly now for script. However, may I ask which code need to add into the script to show in game like "You earned %s WCoin/GPoint" after killing a monster?
Thanks,
Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
Try to change noticeSend
NoticeSend(PlayerIndex,string.format(PlayerIndex,"%s, You earned 100 awesome points for killing %s",GetObjectName(PlayerIndex),GetObjectName(MonsterIndex)))
att
Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
Quote:
Originally Posted by
SmileYzn
Try to change noticeSend
NoticeSend(PlayerIndex,string.format(PlayerIndex,"%s, You earned 100 awesome points for killing %s",GetObjectName(PlayerIndex),GetObjectName(MonsterIndex)))
att
I think in the GS source, you had not define the NoticeSend so the GS crash right after monster killed :)
Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
Code:
int CLuaExport::fnNoticeSend(lua_State* Lua)
{
gNotice.GCNoticeSend((int)lua_tointeger(Lua,1),(BYTE)lua_tointeger(Lua,2),0,0,0,0,0,(char*)lua_tostring(Lua,3));
return 0;
}
Function is on GameServer bro is Lacking the type:
Code:
NoticeSendToAll(PlayerIndex,1,string.format("%s earned 100 WCoinC for killing %s!",GetObjectName(PlayerIndex),GetObjectName(MonsterIndex)))
Sorry i was at work and cannot read/write it correctly, when write this line that you have crash :|
[Help] People cant Join Server
Hey , could some one answer , is it possible to add custom sets on this server , like Goku , Naruto , Bleach items ?
Re: [Release] MU Server Season 5.5 Full (PerfectZone Server Files) (Beta)
SmileYzn , Where i could fix pk ? Just duel , and cant pk in ring.