Jump to content

gainster81

Advanced members
  • Content Count

    87
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by gainster81


  1. 23 minutes ago, Saeed said:

    Maybe try to change the skill type in skillinfo to a neutral skill so it would call the skill function despite having no enemies in the selected area 

    It worked! i was changing the skill type column but it was the "process target" column that i had to set to 1. Thanks!


  2. 12 hours ago, V3ct0r said:

    It is ok. Have you found the name of the function? Can you share the code with us?

    Hey @V3ct0r! The code i am currently using is the following:

     

    local x, y = GetSkillPos ( ATKER )
    local map_name = GetChaMapName ( ATKER )
    local x = math.floor (x/100)
    local y = math.floor (y/100)
    GoTo(ATKER, x,y, map_name)

    It also works with GetChaPos but in that case you get teleported into the enemy player instead of the clicked area. A new issue that i am having is that the skill must pass through an enemy in order to work. This means that if i select an area and no enemies are inside the zone, the teleport wont work, as if there was a condition preventing from the ending function to happen if it doesn't hit something.

    In the gif example below it works only because there is a shrub inside the area:

    1a3565a7f2322626626cec0cbeb6c9dc.gif

    12 hours ago, V3ct0r said:

    Are you working with official client binaries or source codes? I think you shouldn't remove the camera relocation since the character is always located in the center of the screen (scene). 

    Only edited client binaries for now, but i have the src as well. By realocating i mean preventing the camera to "zoom out" like in the gif i just showed that the camera goes up again and it rotates back to its standard position. Is there any way of doing that and also deleting the "level 79" text that appears?


  3. On 9/27/2021 at 9:28 AM, V3ct0r said:

    Hello @gainster81!

     

    As @mkhzaleh mentioned, variables 'x' and 'y' are undefined. You can get these coordinates using GetChaPos() function, but I think it has no sense, your character will teleport to itself, i.e. on the same position. I suggest use skill like Voayger's 'Conch Ray' as a template. As I remember, there is a function that allow to get coordinates clicked on the terrain by the player.

     

     

    Hi @V3ct0r! Sorry for reviving this thread again. I gave up before but now i am trying to set this up again. Do you remember which is the function that allows to get the coordinates from the clicked terrain?

    Also, i tried again what @mkhzaleh said but added it in the conch ray script and seems to work (only when it hits a target).

    Now that it worked, i am wondering if its possible to remove the camera realocation and message that pops out when "GoTo" activates:
     

    fdb87326a50d904588dfc860894c48db.gif


  4. 1 hour ago, mkhzaleh said:

    ignore this guy, he mostly use my fix "workaround with no idea"


    the ids cause it :
    96  dw 1 boss freeze stun
    159   //flash stun 
    45 : which is State_Xy_Add all crus stun/champ etc
     98)    // death night 

    116)    //  Black Dragon Terror  

    87)    // Algae Entanglement   

    86)    // Tornado   


    NOTE:  you can fix this in client sure but its workaround as i said by manual deleting when effect over 

    Do i need to add an exception for those in SkillState.h from server source? Or which line/file is it? Sorry, i am not really into C++


  5. On 4/5/2020 at 4:06 AM, mkhzaleh said:

    o.o should be , used same src 6months ago with the shared exe and works fine
    there is bugs but yea fixed most of them
    so if you are looking to some hints you going look to these bugs
    #1- Guild exp and states on disband function do not reset in group server , which is when create new guild will take old points of the disbanded guild
    #2- Disband guild & recreate crash the client > related to first bug, and need a fix of client part.. guild section forms
    #3- create guild crash client > rebuild refresh mindpower
    #4-Movement bug states on stun/freeze if player moving
    #5- some gui bugs above gmnotice in windows/full screen  > adjust screen space box for gmnotice<
    #6-hair npcs & exchanger npc the hover items crash the client >>missing reset the bool on false switch 
    #7-flood buttons/exp/guild color/ addexpguild . spamming sql while many players doing /killing monsters or quests >  fix inside groupserver cooldown can fix it smoothly 
    #8- switch item flood crashes all people clients on the range
    example
    ca74f9a741d38d8f6676f6b5b853ba3d.gifcan be fixed with small cooldown >gameserver or client<
    #9 register function inside client can be flooded with small bot to fill your database >> small captcha will fix it 
    #10 switch items with 1 slot delete the switched items 
    c2020f8f5a26e4b10b756ba9d407b345.gif the fix do not allow the switch with 1 slot only make it 3 or 5
    #11- extract gems dupe if had high level inside the item , with  > 1 of level gem lv1

    this some bugs can be a good hit to start lol but people prefer to spam/do not read 

    Hi @mkhzaleh. Were you able to find a fix for the movement bug (Bug #4)?


  6. 5 hours ago, mkhzaleh said:

    in your skill x, y not defined 
    x/100 ? 
    you have to use
     

    
    local x, y = GetChaPos(ATKER)

     

    Added "local x, y = GetChaPos(ATKER)" but it still didn't work. Also tried removing the /100 lines but it also didn't work. Any other thing i may be missing?


  7. Hey,

     

    I was trying to make a new skill in which you can teleport on the clicked area within a  short range. I used the Mytho teleportation skill (id 296) as a guide. I setted it up but the skill isn't working (the animation happens but my char isn't teleporting to the selected area. Am i missing something in the skilleffect function?

     

    function Skill_tptp_End ( ATKER , DEFER , sklv ) 
    	local map_name = GetChaMapName (ATKER)
    	local x = math.floor (x/100)
    	local y = math.floor (y/100)
    	GoTo(ATKER, x,y, map_name)
     end

     


  8. Hi!, Great post!

     

    I am having the following issue when trying to import obj models (to then export them as lgo):

     

    (translated): "System.ArgumentOutOfRangeException: The index is out of the interval. The value must be non-negative or lower than the colection.
    Parameter name: index
       in System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
       in System.Collections.Generic.List`1.get_Item(Int32 index)
       in PKOModelViewer.ImportForm.ImportObjToLgo(String filename) en E:\Programming\Serverdev - Legacy\pko-viewver\PKO-file-viewer\PKOModelViewer\ImportForm.cs:line 384
       in PKOModelViewer.ImportForm.button3_Click(Object sender, EventArgs e) en E:\Programming\Serverdev - Legacy\pko-viewver\PKO-file-viewer\PKOModelViewer\ImportForm.cs:line 78
       in System.Windows.Forms.Control.OnClick(EventArgs e)
       in System.Windows.Forms.Button.OnClick(EventArgs e)
       in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       in System.Windows.Forms.Control.WndProc(Message& m)
       in System.Windows.Forms.ButtonBase.WndProc(Message& m)
       in System.Windows.Forms.Button.WndProc(Message& m)
       in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)"

    image.png.9976e371d60ffce73ba45b39c7178c01.png

     

    Is there any way i can fix this?

     

    Thank you!


  9. 2 hours ago, Tensei said:

    It is just an example line; so whatever glow has the green, and you choose to re-color to purple or white it will be replace green with that color.

    But if i wanted to keep the purple, and also add another white glow without limiting me to use the green glow "spot", is there any way to make itemrefine link the item id to a new tga file?

    Been playing with it a bit:

    image.png.77edb3fdba8314ad46799bdbb528966b.pngimage.png.525492ce1143499f17ed5bf98e403e2c.png

     


  10. On 4/11/2020 at 2:38 AM, JaR said:

    Whos know how to decompile tables on CO Client?

    I can't decompile with Gemini and Deguix Decompiler

    @JaR did you find a decompiler? I am having the same issue as there are some txt that arent being compiled by server exes and others that arent used by server as well.


  11. 7 hours ago, Spidpex said:


    Not bad! Will you also make additional skins in the future of various apparels?

    Thanks, i haven't been making skins for a while. Might get back on it again and make other cool apparels in the future.  I've made skins of other games too (Such as LoL or WoW), which you can see in my profile on that website.


  12. 1 hour ago, Greaux said:

    not bad, best impact for pkodev community
    Can you provide obj/lgo models for PKO? 🤔

    Added screenshots of the sets to compare. For the templar i added a screenshot of the torso directly since it has a lot of details. Regarding the minecraft models, i don't know exactly how to export them to lgo. It would be cool tho.


  13. Hey there, what's up?

     

    Not sure if many people here play minecraft, but in case anyone is interested, a couple of years ago i made 2 minecraft skins of 2 of the best apparels in the game in my opinion; Lance Templar set and frozen heart set.

     

    image.png.5a76a36bd87a5bfe36b1e6fb7b1c5480.pngimage.png.31a63527e480d45870e11eb67e9bc629.png

    image.png.d1d7e3ebe2fa7433ad8e4ed56dda4ebb.pngimage.png.07d92aa08e1abcabee8bc2ccf36e7d92.png

     

    Here are the links in case you want to switch your minecraft skin:

     

    Templar set: https://www.planetminecraft.com/skin/templar-set/

    Frozen heart set: https://www.planetminecraft.com/skin/frozen-heart-set-from-tales-of-pirates-online/

     

     

     

     

    • Like 1
    • Thanks 2

  14. 53 minutes ago, soilder12 said:

    hello anyone can provide a guide to make launcher for my server??? i been looking on forum but cannot find 

     

    and how to set drop rate on certain moobs for example dw1 moobs refining gem drop rate 1%, 2% etc? is that possible ??

     

    would be realy great if someone can help or provide a guide.. thanks :D

    Hi, I believe there is a game launcher someone posted in the client section.

     

    Regarding the drop rate of specific items, you can edit them in CharacterInfo.txt (server file). There is a column that states which items will be dropped if the mob dies, and another one that states the % rate of that item to be dropped.

     

    For example, if you want to make the following  dw mob have 1% chance to drop ref gem. it's line should look like this (marked in yellow the edited parts):

    670    Snow Doll Spirit    Snow Doll    4    5    201    0    1    1    0    0    0    0    0    0    0    484,485    0    0,0,0    1    142    100    221    222    223    0    0    0    0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1    0,879    0,942    2,562    60    1,5,0    2,4,0    399    398    0    0    0,0,0    1    1    0    0    139,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1    100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1    3821,3427,883,882,885,-1,-1,-1,-1,-1    153,666,125000,125000,10000,-1,-1,-1,-1,-1    0    0    0    4247,-1,-1,-1,-1,-1,-1,-1,-1,-1    1000,-1,-1,-1,-1,-1,-1,-1,-1,-1    10    1    1000    0    0    1    0    55    17200    0    10000    0    616    924    33    175    300    212    10    137    22    0    1200    200    1500    450    0    32    32    32    32    32    32    20    0    0    0    5402    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1,1,1
     

     

     

    Here i've set the chance to 10000 which should be 1%. 

    • Thanks 1
×
×
  • Create New...