Jump to content

gainster81

Advanced members
  • Content Count

    87
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by gainster81


  1. 12 hours ago, Hydra said:

    Hey,

    You can test this out on your local machine. Trying it out will rule out any internet speeds and see if you can reproduce this "lag" and rollbacks.

    If they persist, then I would say its not a ping issue, but the game itself.

    Hydra

    Tried that, it is definetely a client problem.

     

     

    5 minutes ago, FruitJuice said:

    Client issue.

    Sadly yes. Thanks for the answer


  2. Hey guys, 

     

    Considering the game itself has always been a bit "laggy", i have doubts when thinking what is causing it. It happens in my server that when you are running at high speed with your character, sometimes a short rollback happens, getting your char back where it was standing before.  Short rollbacks also happen sometimes when running close to a wall. 
     

    Do you think that would be due to the ping (most players have 250 ping)? Or the vps ssd/ram/cores quality? Or could even be the game itself? The current VPS i am using has 4cores and 8gb ram.

     

    In case it's the ping, i am considering moving the vps to a closer region where i should get about 170 ping instead of 250.

     

    Thanks in advance


  3. On 4/30/2020 at 12:05 PM, V3ct0r said:

    Hello, @gainster81!

     

    Check GMCmd.txt file in GameServer folder:

    
    25=goto,call,move
    26=hide,kick,unhide,qcha
    27=make,summon,summonex,kill,setrecord,clearrecord,addmission,clearmission,delmission,addkb,addexp,addmoney
    99=attr,updateall,skill,itemattr,gamesvrstop,reload

     

    Thanks @V3ct0r it worked!
     

    On 4/30/2020 at 11:46 AM, Falonne said:

    Like this :

    supercmd            =  1 

     

    Yeah, i have that already.


  4. On 8/31/2018 at 4:05 PM, FruitJuice said:

    Yes, you can make a weapon glow red/blue/orange/purple/yellow/green all in 1, I've done this long time ago.

    Some reference that I can give you:

     

    Notice in the still picture, I have multiple things within the weapon.

    I have a glowing circle in the middle of the bow that lights yellow/orange/red (If it was a video)

    and a blue spinning circle 360 around the bow that goes blue/purple

    I also have a feather like effect around my bow

    I also have 2 ball effects on bow ends of the bow that go blue/purple

    I also have another effect that when I run with the character, a trail of lights follow.

    My gems also are Eye/Aggr/Great Strike

    Means: Red/Blue/Red

     

    Now compare to my Sword Model

     

     

     

    Weapon Colors -> Can determine what glow color it can have

    StoneInfo -> Determines what gem the color glow should be

    ItemRefineInfo -> Determines what Type of Glow look/what color mixture/size

    This is all trial and error, and you will need to compile until you get a desired glow.

     

     

    --- in StoneInfo.txt

    Example:

    12    Gem of Rage    0863             1,2                         4                            ItemHint_NRage

    ID    Gem Name       Gem ID   Forge Into ItemType      Gem Color Glow       Gem Detail

     

    Gem Color Glow ->

    1 = Red

    2 = Blue

    3 = Green?

    4 = Yellow

     

     

     

     

     

    (This is where you determine what type of glow it should look like, which is where you will guess from 1-299, some glows work on certain model weapons, and wrapped around it.)

    This also determines the current glow on the weapon example if all were set to 9 9 9 9 9 9 9 9 9 9 0.61 0.61 0.61 the result would be pure blue glow, but an addition would be making your gem glow red also in the StoneInfo.

     

    ItemID  Item Name           Eff1 Eff2 Eff3 Eff4 Eff5 Eff6 Eff7 Eff8 Eff9 Eff10 Eff11 Eff12 Eff13 Eff14              Glow Size for Lance  Glow Size for Carsise  Glow size for Phyllis    Glow Size for Ami

    5283    Barborosa's Knife    3    3    0    12    12    0    3    0    3    0    0    3    0    0                                  0.61                       0.61                          0.61                         0.61

     

     

    Full Line 

    5283    Barborosa's Knife    3    3    0    12    12    0    3    0    3    0    0    3    0    0    0.61    0.61    0.61    0.61

     

     

     

     

     

     

     

     

     

     

    1.PNG

    2.PNG

    3.PNG

    @FruitJuice Sup, amazing glows dude. Do you have the itemrefiningeffectinfo and itemrefineinfo lines to add those 2 glows?

    • Like 1

  5. Hey guys, as the title says, i am getting the "access too low" error when trying to some specific commands with my gm (itemattr for example). I checked that the account was gm lv99 and that was ok but still can't figure out if there is any other condition to make the command. I am using lucky files 2.4. Anyone got any idea what could be wrong?

     

    Thanks in advance.


  6. Hey guys, i jsust added the 125 skills to my server but when i try to learn them, some of them dont appear in the skills section, while others do. (i double click the skill, the book dissappears and the skill wont show in the section).

     

    Anyone know why? It is weird that some work and others dont. I replaced some lines from skilleff already to make sure all skills are in.


  7. 17 hours ago, Ximboliex said:
    
    function Skill_Lj_End(ATKER, DEFER, SkillLevel)
    	local Damage = math.floor((80 + SkillLevel * 10 + (Sta(ATKER)) * 6) + 3 * (Lv(ATKER))) * 1.15
    	if (GetChaMapName(ATKER) == "garner2" or GetChaMapName(DEFER) == "garner2") and Is_NormalMonster(DEFER) == 0 then
    		Damage = math.floor(MAGIC_Atk_Dmg(ATKER,DEFER) * math.pow(SkillLevel, 1/2))
    	end
    	if BlackDragon_equipament(ATKER) == 1 and math.random(1, 100) <= 80 then
    		Damage = Damage * 1.5
    		SystemNotice(ATKER, "Damage was increased due to the power of the Black Dragon equipment.")
    	end
    	Damage = Cuihua_Mofa(Damage, (GetChaStateLv(ATKER, STATE_MLCH)))
    	Damage = Damage + ElfSkill_MagicAtk(Damage, ATKER)
    	if GetChaAttr(ATKER, ATTR_CSAILEXP) > 0 and GetChaAttr(ATKER, ATTR_CSAILEXP) < 100 then
    		Damage = Damage * 1.055
    	end
    	if GetChaAttr(ATKER, ATTR_CSAILEXP) >= 100 and GetChaAttr(ATKER, ATTR_CSAILEXP) < 12100 then
    		Damage = Damage * (1.05 + math.floor(math.pow((GetChaAttr(ATKER, ATTR_CSAILEXP) / 100), 0.5)) * 0.005)
    	end
    	if CheckItem_Nianshou(ATKER) == 1 then
    		local pr = math.random(1, 100)
    		local chance = 80
    		if pr <= chance then
    			Damage = Damage*2
    			SystemNotice("")
    		end
    	end
    	AddState(ATKER, DEFER, STATE_MB, 2, 3)
    	Hp_Endure_Dmg(DEFER, Damage)
    	if IsPlayer(ATKER) == 1 and IsPlayer(DEFER) == 1 then
    		LG("Skill Log", GetChaDefaultName(ATKER), GetChaDefaultName(DEFER), GetChaMapName(ATKER), "Lightning Bolt", SkillLevel, Damage)
    	end
    	CheckAttackState(ATKER, DEFER)
    	GivePetState(ATKER, DEFER)
    end

     

     

    Replace your script whit this.

    changed it but now lighting bolt doesn't deal damage, is it possible?


  8. 18 hours ago, Joah said:

    I think you need the map file for client side of the island in map folder and also the minimap -> texture -> minimap

    Also need to add in your mapinfo.bin

    Decompile your mapinfo.bin

    You will receive mapinfo.txt

    Add in your mapinfo.txt the new map you wish to add (There is a limit I forgot how many maps)

                 //ID    File(to load from client)   Name    1?    Coords    2?    RGB color

     Example: 40    chaosicicle    Nightmare Icicle    1    1350,550    3,1350,550    255,255,255

    Once added to mapinfo.txt - Re-compile to get a new mapinfo.bin

     

                             

    And for server side;

    Resource//Script/MisScript/ScriptDefine.lua -> Add -----                AddMap( "mapname", "Map Name" )

    Resource//Script/birth/birth_conf.lua -> Add --  AddBirthPoint("Map Name", "mapname",  X Coords,Y Coords) -- Use Yammi Tool if you want to know location of a spawn you want to pick from

    Example: AddBirthPoint("Map Name","mapname", 100,100) -- Players will spawn in Map Name at 100 X, 100Y

     

     

    GroupServer.cfg

    [bird]
    Argent City        =    name of your desired map (mapname)
    Shaitan City    =    name of your desired map (mapname)
    Icicle Castle    =    name of your desired map (mapename) 

    These should all be the same if you are using only 1 map spawn.

     

    (The file StringSet.bin cannot be decompiled, and must be edited with Notepad, when you complete just save.)

    You can use (Ctrl+G) to go to a certain line

     

    Now Client side -> StringSet.bin (right click and edit - choose NotePad)

    [39] "Argent City"

    [40] "Shaitan City"

    [41] "Icicle Castle"

     

    Should be replaced with 

    [39] "name of your desired map"  (Map Name)

    [40] "name of your desired map"  (Map Name)

    [41] "name of your desired map" (Mape Name

     

     

     

    If you get an error like -> Illegal Birth Place most likely, you did Client String wrong.

     

    (Remember to restart your server, and make sure to include the new .txt files on server side, and also mapinfo.bin/StringSet.bin for client side)

     

    Thanks for the info, do you know where i can find the avacado map file?


  9. Hey guys, i am trying to set up the avacado server fiels (the island server) and i am trying to set the island as the only spawn point. I have followed some guides out there, editing group server , birthplace (serversided) and stringset (client sided) but when i try to log in with any char i am having this problem:

     

    Is ther any solution?

     

    bug.png


  10. Hi guys, i am looking for a good VPS to replace the one i am currently paying. Which website is trustable and easy to set up the vps? I've read OVH is good but i checked it out and it seems the payment must be anualy without being able to pay each month.

     

    I am hosting a server with a small active community (10-15 people max). So i am planning on improving the vps to  8gb ram and 2cores (currently 4gb ram and 1core). Is that enough?

     

     

    Thanks 


  11. On 5/29/2018 at 11:31 PM, opexone78 said:

    i hope this will help you

     

    
    if Item_JLone_ID ==680 or Item_JLother_ID ==680 then
               if Item_JLone_ID==Item_JLother_ID then
                       r1,r2 =MakeItem ( role , 681  , 1 , 4 )
                      elseif lv_JLone>=20 and lv_JLone<25 and lv_JLother >=20 and lv_JLother<25 and rad>=88 then    --12% Chance of Mordo JR
                       r1,r2 =MakeItem ( role , 681  , 1 , 4 )
                       elseif lv_JLone>=25 and lv_JLone<35 and lv_JLother >=25 and lv_JLother<35 and rad>=50 then    --50% Chance of Mordo JR
                       r1,r2 =MakeItem ( role , 681  , 1 , 4 )
                      elseif lv_JLone>=35 and lv_JLother >=35 and rad>=10 then    --90% Chance of Mordo JR
                      r1,r2 =MakeItem ( role , 681  , 1 , 4 )    --Mordo JR        
               else
                      r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck
               end
               else   --------- delete this line
                      r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck  ------------- delete this line
               end   ------------- delete this line
      elseif Item_JLone_ID == 983 and Item_JLother_ID == 983 then

    and also

    
    elseif Item_JLone_ID == 983 and Item_JLother_ID == 983 then
            if lv_JLone >= 20 and lv_JLone < 25 and lv_JLother >= 20 and lv_JLother < 25 and rad >= 90 then        --Pet Lv20-24 10% Chance of Angela JR
                    r1,r2 = MakeItem ( role , 984  , 1 , 4 )-- Your Angela Jr ID
                    elseif lv_JLone >= 25 and lv_JLone < 35 and lv_JLother >= 25 and lv_JLother < 35 and rad >= 80 then    --Pet Lv25-34 20% Chance of Angela JR
                    r1,r2 = MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
                    elseif lv_JLone >= 35 and lv_JLone < 50 and lv_JLother >= 35 and lv_JLother < 50 and rad >= 70 then    --Pet Lv35-49 30% Chance of Angela JR
                   r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
                   elseif lv_JLone >= 50 and lv_JLone < 70 and lv_JLother >= 50 and lv_JLother < 70 and rad >= 60 then    --Pet Lv50-69 40% Chance of Angela JR
                   r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
                   elseif lv_JLone >= 70 and lv_JLone < 85 and lv_JLother >= 70 and lv_JLother < 85 and rad >= 50 then    --Pet Lv70-84 50% Chance of Angela JR
                   r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID 
                   elseif lv_JLone >= 85 and lv_JLother >= 85 and rad >= 25 then                        --Pet Lv85 above 75% Chance of Angela JR
                   r1,r2 =MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
            else
                    r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
            end
    
    end   ----------add this line

    so the script become


     

    
     if Item_EMstone_ID ==3918 then ---Çàɬ¶ñħ¹ûʵ
            local j1 = TakeItem( role, 0,4530, 10 )            ---ÃÀζÎÚÔôÈâ     
            local j2 = TakeItem( role, 0,3434, 10 )            ----·ÏÁéÎäÊ¿º¡¹Ç 
            if j1==0 or j2==0 then
                SystemNotice ( role ,"Deletion of pet fairy reborn tools failed")
                return
            end 
            local rad = math.random ( 1, 100 )
            local r1 = 0
            local r2 = 0
            if Item_JLone_ID ==680 or Item_JLother_ID ==680 then
                    if Item_JLone_ID==Item_JLother_ID then
                            r1,r2 =MakeItem ( role , 681  , 1 , 4 )
                            elseif lv_JLone>=20 and lv_JLone<25 and lv_JLother >=20 and lv_JLother<25 and rad>=88 then    --12% Chance of Mordo JR
                            r1,r2 =MakeItem ( role , 681  , 1 , 4 )
                            elseif lv_JLone>=25 and lv_JLone<35 and lv_JLother >=25 and lv_JLother<35 and rad>=50 then    --50% Chance of Mordo JR
                            r1,r2 =MakeItem ( role , 681  , 1 , 4 )
                            elseif lv_JLone>=35 and lv_JLother >=35 and rad>=10 then    --90% Chance of Mordo JR
                            r1,r2 =MakeItem ( role , 681  , 1 , 4 )    --Mordo JR        
                    else
                            r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck
                   end
            elseif Item_JLone_ID == 983 and Item_JLother_ID == 983 then
                    if lv_JLone >= 20 and lv_JLone < 25 and lv_JLother >= 20 and lv_JLother < 25 and rad >= 90 then        --Pet Lv20-24 10% Chance of Angela JR
                            r1,r2 = MakeItem ( role , 984  , 1 , 4 )-- Your Angela Jr ID
                            elseif lv_JLone >= 25 and lv_JLone < 35 and lv_JLother >= 25 and lv_JLother < 35 and rad >= 80 then    --Pet Lv25-34 20% Chance of Angela JR
                            r1,r2 = MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
                            elseif lv_JLone >= 35 and lv_JLone < 50 and lv_JLother >= 35 and lv_JLother < 50 and rad >= 70 then    --Pet Lv35-49 30% Chance of Angela JR
                            r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
                            elseif lv_JLone >= 50 and lv_JLone < 70 and lv_JLother >= 50 and lv_JLother < 70 and rad >= 60 then    --Pet Lv50-69 40% Chance of Angela JR
                            r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
                            elseif lv_JLone >= 70 and lv_JLone < 85 and lv_JLother >= 70 and lv_JLother < 85 and rad >= 50 then    --Pet Lv70-84 50% Chance of Angela JR
                            r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID 
                            elseif lv_JLone >= 85 and lv_JLother >= 85 and rad >= 25 then                        --Pet Lv85 above 75% Chance of Angela JR
                            r1,r2 =MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
                      else
                            r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
                     end
    
            end
            local Item_newJL = GetChaItem ( role , 2 , r2 )            --ȡо«ÁéµÀ¾ßÖ¸Õë
            local Item_newJL_ID = GetItemID ( Item_newJL )
            local Num_newJL = GetItemForgeParam ( Item_newJL , 1 )
            local Part1_newJL = GetNum_Part1 ( Num_newJL )    --Get Num Part 1 µ½ Part 7
            local Part2_newJL = GetNum_Part2 ( Num_newJL )    
            local Part3_newJL = GetNum_Part3 ( Num_newJL )
            local Part4_newJL = GetNum_Part4 ( Num_newJL )
            local Part5_newJL = GetNum_Part5 ( Num_newJL )
            local Part6_newJL = GetNum_Part6 ( Num_newJL )
            local Part7_newJL = GetNum_Part7 ( Num_newJL )            
            if lv_JLone>=20 and lv_JLother >=20 then
                Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
                Part3_newJL = 1                        ---------³õ¼¶½×¶Î
            end
            if lv_JLone>=25 and lv_JLother >=25 then
                Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
                Part3_newJL = 2                        ---------Öм¶½×¶Î
            end
            if lv_JLone>=35 and lv_JLother >=35 then
                Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
                Part3_newJL = 3                        ---------¸ß¼¶½×¶Î
            end
            local rad1 = math.random ( 1, 100 )
            if Part3_newJL==3 then
                GiveItem ( role , 0 , 609  , 1 , 4 )    --Expert Fairy Possession
                GiveItem ( role , 0 , 612  , 1 , 4 )    --Expert Self Destruct
            end

     

    Edited your way but it still fails and gives me fairy of luck. here is my updated file:

     

    if Item_EMstone_ID ==3918 then ---Çàɬ¶ñħ¹ûʵ
            local j1 = TakeItem( role, 0,4530, 10 )            ---ÃÀζÎÚÔôÈâ     
            local j2 = TakeItem( role, 0,3434, 10 )            ----·ÏÁéÎäÊ¿º¡¹Ç 
            if j1==0 or j2==0 then
                SystemNotice ( role ,"Deletion of pet fairy reborn tools failed")
                return
            end 
            local rad = math.random ( 1, 100 )
            local r1 = 0
            local r2 = 0
            if Item_JLone_ID ==680 or Item_JLother_ID ==680 then
                if Item_JLone_ID==Item_JLother_ID then
                    r1,r2 =MakeItem ( role , 681  , 1 , 4 )
                elseif lv_JLone>=20 and lv_JLone<25 and lv_JLother >=20 and lv_JLother<25 and rad>=88 then    --12% Chance of Mordo JR
                    r1,r2 =MakeItem ( role , 681  , 1 , 4 )
                elseif lv_JLone>=25 and lv_JLone<35 and lv_JLother >=25 and lv_JLother<35 and rad>=50 then    --50% Chance of Mordo JR
                    r1,r2 =MakeItem ( role , 681  , 1 , 4 )
                elseif lv_JLone>=35 and lv_JLother >=35 and rad>=10 then    --90% Chance of Mordo JR
                    r1,r2 =MakeItem ( role , 681  , 1 , 4 )    --Mordo JR        
                else
                    r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck
                end
            elseif Item_JLone_ID == 983 and Item_JLother_ID == 983 then
                if lv_JLone >= 20 and lv_JLone < 25 and lv_JLother >= 20 and lv_JLother < 25 and rad >= 90 then        --Pet Lv20-24 10% Chance of Angela JR
                    r1,r2 = MakeItem ( role , 984  , 1 , 4 )-- Your Angela Jr ID
                elseif lv_JLone >= 25 and lv_JLone < 35 and lv_JLother >= 25 and lv_JLother < 35 and rad >= 80 then    --Pet Lv25-34 20% Chance of Angela JR
                    r1,r2 = MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
                elseif lv_JLone >= 35 and lv_JLone < 50 and lv_JLother >= 35 and lv_JLother < 50 and rad >= 70 then    --Pet Lv35-49 30% Chance of Angela JR
                    r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
                elseif lv_JLone >= 50 and lv_JLone < 70 and lv_JLother >= 50 and lv_JLother < 70 and rad >= 60 then    --Pet Lv50-69 40% Chance of Angela JR
                    r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
                elseif lv_JLone >= 70 and lv_JLone < 85 and lv_JLother >= 70 and lv_JLother < 85 and rad >= 50 then    --Pet Lv70-84 50% Chance of Angela JR
                    r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID 
                elseif lv_JLone >= 85 and lv_JLother >= 85 and rad >= 25 then                        --Pet Lv85 above 75% Chance of Angela JR
                    r1,r2 =MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
            else
                r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
            end
        end

     

     

     

    On 5/29/2018 at 10:53 PM, Joah said:

    I think you forgot one line?

           else
                r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
            end

     

    TIP: Do not make pets above line 500 if you do, the stats will bug when possing, it will grant random stats also passively.

     

    Also, if it  doesn't work, try changing mordo jr id 681 to your Angela Jr Id and marry 2 mordos?

    Where should that line go? I read that the id should be below 1000 and the stats and poss are both working fine.


  12. Hey guys, my fairy marriage system isnt working. I edited forge.lua to make sure i could marry angelas to get angela jr. I gave item ID 983 and 984 to both pets. I leveled 2 angelas to lv20 and marriage them and instead of getting an angela JR i got a fairy of luck. What is wrong with my forge? It looks like the following.

     

     

        if Item_EMstone_ID ==3918 then ---Çàɬ¶ñħ¹ûʵ
            local j1 = TakeItem( role, 0,4530, 10 )            ---ÃÀζÎÚÔôÈâ     
            local j2 = TakeItem( role, 0,3434, 10 )            ----·ÏÁéÎäÊ¿º¡¹Ç 
            if j1==0 or j2==0 then
                SystemNotice ( role ,"Deletion of pet fairy reborn tools failed")
                return
            end 
            local rad = math.random ( 1, 100 )
            local r1 = 0
            local r2 = 0
            if Item_JLone_ID ==680 or Item_JLother_ID ==680 then
                if Item_JLone_ID==Item_JLother_ID then
                    r1,r2 =MakeItem ( role , 681  , 1 , 4 )
                elseif lv_JLone>=20 and lv_JLone<25 and lv_JLother >=20 and lv_JLother<25 and rad>=88 then    --12% Chance of Mordo JR
                    r1,r2 =MakeItem ( role , 681  , 1 , 4 )
                elseif lv_JLone>=25 and lv_JLone<35 and lv_JLother >=25 and lv_JLother<35 and rad>=50 then    --50% Chance of Mordo JR
                    r1,r2 =MakeItem ( role , 681  , 1 , 4 )
                elseif lv_JLone>=35 and lv_JLother >=35 and rad>=10 then    --90% Chance of Mordo JR
                    r1,r2 =MakeItem ( role , 681  , 1 , 4 )    --Mordo JR        
                else
                    r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck
                end
            else
                r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck
            end
            elseif Item_JLone_ID == 983 and Item_JLother_ID == 983 then
            if lv_JLone >= 20 and lv_JLone < 25 and lv_JLother >= 20 and lv_JLother < 25 and rad >= 90 then        --Pet Lv20-24 10% Chance of Angela JR
                    r1,r2 = MakeItem ( role , 984  , 1 , 4 )-- Your Angela Jr ID
            elseif lv_JLone >= 25 and lv_JLone < 35 and lv_JLother >= 25 and lv_JLother < 35 and rad >= 80 then    --Pet Lv25-34 20% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
            elseif lv_JLone >= 35 and lv_JLone < 50 and lv_JLother >= 35 and lv_JLother < 50 and rad >= 70 then    --Pet Lv35-49 30% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
            elseif lv_JLone >= 50 and lv_JLone < 70 and lv_JLother >= 50 and lv_JLother < 70 and rad >= 60 then    --Pet Lv50-69 40% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
            elseif lv_JLone >= 70 and lv_JLone < 85 and lv_JLother >= 70 and lv_JLother < 85 and rad >= 50 then    --Pet Lv70-84 50% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID 
            elseif lv_JLone >= 85 and lv_JLother >= 85 and rad >= 25 then                        --Pet Lv85 above 75% Chance of Angela JR
                r1,r2 =MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
            else
                r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
            end
            local Item_newJL = GetChaItem ( role , 2 , r2 )            --ȡо«ÁéµÀ¾ßÖ¸Õë
            local Item_newJL_ID = GetItemID ( Item_newJL )
            local Num_newJL = GetItemForgeParam ( Item_newJL , 1 )
            local Part1_newJL = GetNum_Part1 ( Num_newJL )    --Get Num Part 1 µ½ Part 7
            local Part2_newJL = GetNum_Part2 ( Num_newJL )    
            local Part3_newJL = GetNum_Part3 ( Num_newJL )
            local Part4_newJL = GetNum_Part4 ( Num_newJL )
            local Part5_newJL = GetNum_Part5 ( Num_newJL )
            local Part6_newJL = GetNum_Part6 ( Num_newJL )
            local Part7_newJL = GetNum_Part7 ( Num_newJL )            
            if lv_JLone>=20 and lv_JLother >=20 then
                Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
                Part3_newJL = 1                        ---------³õ¼¶½×¶Î
            end
            if lv_JLone>=25 and lv_JLother >=25 then
                Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
                Part3_newJL = 2                        ---------Öм¶½×¶Î
            end
            if lv_JLone>=35 and lv_JLother >=35 then
                Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
                Part3_newJL = 3                        ---------¸ß¼¶½×¶Î
            end
            local rad1 = math.random ( 1, 100 )
            if Part3_newJL==3 then
                GiveItem ( role , 0 , 609  , 1 , 4 )    --Expert Fairy Possession
                GiveItem ( role , 0 , 612  , 1 , 4 )    --Expert Self Destruct
            end

×
×
  • Create New...