Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all 35033 articles
Browse latest View live

Money By Killing Monsters.

$
0
0
Before starting, this is not my guide I just posted it here

K lets start.


The function to work with is

GetExp_New(dead, atk) found in exp_and_level.lua
this function is called to give exp when killing action happens.


There are lots of ways you can go by to calculate random amounts.
#1
you can directly do a random value calculation.
Code:

money = math.random(50000,100000)
That should give any amount between 50k to 100k.

#2
do a random value and a multiplier for it.
Code:

money = math.random(50000,100000)
multiplier = (2,10)
finalValue = money * multiplier

This will first generate a random value between 50k and 100k and then generate another random value between 2 and 10. After that, both are multiplied to get the final value.

There are many more ways you can do... :)

first we will check if the dead is a monster.
so we do
Code:

    if IsPlayer(dead) ~= 1 then -- if its not player.
So in this part of below function, i've gone with a request from @sunshine , where he wants players to get $ 1 million by killing Snowman Warlord.
So i've checked mobID, if it is 678 which is for Snowman Warlord, then amount becomes 1m, also to explain things a bit more, i've added one more id (679 which is Wandering soul), if players kill it, they get 2m, and for any other mob (i used else that means for any other id), they get the random value :)
Code:

        local mobID = GetChaID(dead)

        if mobID == 678 then
            amount = 1000000
        elseif mobID == 679 then
            amount = 2000000
        else
            a = math.random(200, 900)
            b = math.random(2, 10)
            amount = a*b
        end

        AddMoney ( atk, 0 , amount )

Amount value which is calculated or defined will be added to player. If you want only for certain mobs, you can remove the part for else. should do :)


Place this right below
Code:

    if ValidCha(atk) == 0  then
        LG ( "exp_atker=NIL" , "function GetExp_New : atker = nil " )
        return
    end

in function GetExp_New(dead , atk )

Credits goes to Amu for this guide.

Getting Glows Effects From Fusion Equipment.

$
0
0
Getting effects from fusion equipment
Hello guys, It is a simple function, use this to make your equipment fusion work.

Add this in your cha_timer

Next, we gonna place the function on the bottom of functions.lua (Not inside cha_timer).

Code:

if IsPlayer( role ) == 1 then -- Check it is player.
FusionEffects(role, freq, time) -- Add function to roled player
end -- End checking and applying into the selected player


Next, we gonna place the function on the bottom of functions.lua (Not inside cha_timer). I used as an example for Normal & Corporeal Kylin Set.

Code:

function FusionEffects(role, freq, time)
local Fusion_Armor_ID = GetItemAttr ( GetChaItem(role,1,2), ITEMATTR_VAL_FUSIONID )
local Fusion_Gloves_ID = GetItemAttr ( GetChaItem(role,1,3), ITEMATTR_VAL_FUSIONID )
local Fusion_Boots_ID = GetItemAttr ( GetChaItem(role,1,4), ITEMATTR_VAL_FUSIONID )


-- Normal kylin glow
if Fusion_Armor_ID == 0825 and Fusion_Gloves_ID == 0826 and Fusion_Boots_ID == 0827 and GetChaStateLv (role, STATE_BBRING1) == 0 then
local statelv = 1
local statetime = 3600
AddState ( role , role , STATE_BBRING1 , statelv , statetime )
else
if GetChaStateLv (role, STATE_BBRING1) ~= 0 then
RemoveState(role,STATE_BBRING1)
end
-- Corporeal kylin glow
if Fusion_Armor_ID == 2549 and Fusion_Gloves_ID == 2550 and Fusion_Boots_ID == 2551 and GetChaStateLv (role, STATE_BBRING1) == 0 then
local statelv = 1
local statetime = 3600
AddState ( role , role , STATE_BBRING1 , statelv , statetime )
else
if GetChaStateLv (role, STATE_BBRING1) ~= 0 then
RemoveState(role,STATE_BBRING1)
end
end

If you wish to add more you can add more elseif as I described above. use this function to add fused equipment's to glow if you wish.

Q: What if I want to use other equipment's to glow?
A: You can simply by edit GetChaItem(role,1,NUMBER) you edit the NUMBER from the Look.lua or simply here codes to have the knowledge (Following codes are the numbers you can use as fused equipment, rest of numbers cannot be fused such as Necklaces/Rings):

Code:

Crown/Hats/Ami Caps = 0
Armors/Tatto/Body Equipment = 2
Gloves/Gauntlets = 3
Boots/Shoes/Greaves = 4
Left Equipment = 6
Right Equipment = 9

That's it your done.

Credits goes to Sultan.

[Discussion] KalMaX COULD be back!

$
0
0
Hello RageZoner's,
Me and ToXiC (MaX) are working on a new version of KalMaX.
The server will include pets, custom items and armours, 3rd job, dss, Maybe wings and more!

The server is currently private and not open publicly until we have added and fixed any problems.
Just thought you might all want to know as alot of your may remember and used to love KalMaX however KalMaX is outdated now so we are bringing out a better and more updated server!

We hope to see you on the server soon!... When its open:)

We will announce the server publicly on the forums to get the word out and spread it.

Kind Regards:)


Unique

BOI bak.

$
0
0
Looking for non corrupted MSSQL Boi bak.
Tried several boi baks out of this forum but seems all are corrupted. SQL2008.

[Request] I Need Ran Evilz Client EP6 s2/s3 with lr

$
0
0
I Need Ran Evilz Client EP6 s2/s3 with lr . fix link sir dont post dead link :): tnx

[Help] My Emulator always bugtrap when i add some latest animation in CHF

$
0
0
My Emulator always bugtrap when i add some latest animation in CHF of Archer Shaman and Extreme but the Brawler and Swordsman is working fine.
Im using Neo source btw

Is this Skeleton error? or Bin?

help me?

[Help] Revision 2 - New UI - Catalogue empty!


Galaxy S5 vs HTC One M8

$
0
0
Hey guys! I don't know if this is in the right category... Anyway, since my old phone died (stuck in bootloop) I'm thinking of getting a new one. My budget is $800 AUD and I was thinking of getting the Galaxy S5 or the HTC One. I will mainly use it for watching YouTube videos, surfing the web and gaming. They are both very good phones but I just don't know which one to choose :/

[Help]

$
0
0
How do I likely to develop this one on my server with the help and I was grateful there who have it can you please ishare me?

Neo source

[Help] How to read m1~m5.smb file in tmABCD

$
0
0
Hi friends,

I want to load the pt models to my own rendering engine, however, I can not read some special smb file correctly, just like m1~m5.smb

I found that drz may solved this problem as this thread:
http://forum.ragezone.com/f286/smb-d...7/#post7858449

I have sent him(maybe her? :) a PM, and hope can get a reply. :ott:

Anybody know about smb format or have a new smbreader?

Thx for any infos!

MuOnline Site + Shop

$
0
0
Hello,

Can someone help me?

I want to make MuWeb (dosen't care what version) but one who have the shop on the web to buy with dollars/euro etc.
+
Vote site on Top MuOnline etc.

Can someone help me?

Need Help with SQL SERVER

$
0
0
Hi,

I never used sql server before, and i don't understand how to install it correctly for a TR Server.
So if someone can help me, it would be awesome (I worked like 5 years on WoW but never used this sql server...)

Thanks for reading
here's my skype : natsume.kun

How To Summon Boss In Mandara - Zone 1 .exe

$
0
0
Guys Can i Ask??


How To Summon Boss in Mandara - zone1.exe

Please Help me!!!!

[Help] Web Control Panel Development - MSSQL ERROR

$
0
0
Guys what XAMPP Version is compatible for MSSQL?

[Help] How To Summon Boss In Mandara - Zone 1 .exe

$
0
0
Guys Please Help me!!!!

How To Summon Monster's in Mandara????
please help me

ihave k4 files

Fair Play Travian PS x2088 & Free Daily Gold

503 on user control panel

MYSQL problem with clone gladiatus

$
0
0
Hello! I have problem of clone gladiatus.
The error message :
Errors

Connection with mysql isn't available!

Pls help me! ( Sorry me english is bad)

I dont know, how can i fix this problem :/
Thanks.
Viewing all 35033 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>