Jump to content

mrpatrick

Members
  • Posts

    28
  • Joined

  • Last visited

Posts posted by mrpatrick

  1. Make sure that on your item_db.txt you are using the proper view id regarding your kind of weapons.

     

    This is whats in my item_db:

    31000,Bow_Soaring_Bird,Bow (Soaring Bird Skin),5,1000,,500,15,,5,4,0x000A0848,7,2,34,1,4,1,11,{},{},{}

     

    is "31000" the view ID? If yes, I am using a new client (2013-08-07) and I think that there is no ID limit on new clients.

    Plus I tried using the method for the older clients:

    I tried using the ID 1743 but still same problem.

     

     

     

    The wiki has all the answers mate. Keep reading and understand it.

     
    yeah, I kept on reading actually until now. atleast tell me if you have any thoughts about the problem.
  2. Hello, can anyone help me with my problem?

     

    My client crashes when I try to wear the custom weapon I made.

     

    I can drag the weapon, I can right click on it and see its info. But when I wear it, my client crashes and whenever I login again and use that particular character, my crashes as well.

     

    I followed the guide here:
    http://rathena.org/wiki/Custom_Items#Weapon_Sprite_Solution_.28For_New_Clients.29

     

    and this is where I put my custom weapon sprite:

     

    data/sprite/ÇåÅÍ/ÇåÅÍ_¿©custom_bow.spr

     

    I am trying it on a hunter and archer both no good. 

     

    I tried every solution I found searching but everything doesnt work

     

     

    I think my problem is the .spr file location/name. but i tried everything that came into my mind but still no luck.

     

    EDIT:

     

    Fixed it! BUT ANOTHER PROBLEM OCCURED!

     

     

    first, how i fixed it:

     

    on this guide, http://rathena.org/wiki/Custom_Items#Weapon_Sprite_Solution_.28For_New_Clients.29

    it says the spr file name should be: ÇåÅÍ_¿©custom_bow.spr I changed it to ÇåÅÍ_¿©_custom_bow.spr

     

    ANOTHER PROBLEM!

     

    My character is punching the monster instead of using the weapon it is wearing. I know this problem occurs when the weapon ID is not within the allowed range according here http://rathena.org/wiki/Custom_weapons
     

    But the client I am using is 2013-08-07 and I believe there is no ID limit on new clients. Anyone please help me about this.  /sob

     

    another EDIT:

    I tried doing the method for the old clients but still no luck.  /sob

  3.  

     

     

     

    Firstly, you don't want to do disablenpc "<script_npc>"; that would unload the npc altogether instead make the npc header like...

    event_map,0,0,0	script	script_npc	139,{
    	L_EventStart:
    		initnpctimer;
    		end;
    
    	OnTimer600000:
    		announce "The event has ended!",bc_all,0xFF4500;
    		addrid(1);
    		delitem <item_id>, countitem(<item_id>);
    		warp "prontera",156,191;
    		end;
    }
    

    Secondly, you wouldn't want to use sleep2 because no players are attached so it doesn't matter if we keep them.

    OnClock0000:
    	announce "The event has started!",bc_all,0xFF4500;
    	enablenpc "<event_warper>";
    	sleep 30000;
    	announce "Time's up! The warper will no longer accept participants!",bc_all,0xFF4500;
    	disablenpc "<event_warper>";
    	donpcevent "script_npc::L_EventStart";
    	end;
    

    Lastly, yes and no.. For the players that are currently logged into your server you want to remove the item from inside the server because SQL doesn't update to the player until they relog.

    OnClock0000:
    	donpcevent "script_npc::L_Coroutine";
    	addrid(0);
    	if(set(.@i,countitem(<item_id>)))
    		delitem <item_id>, .@i;
    	end;
    	
    L_Coroutine:
    	sleep 100;
    	query_sql("DELETE FROM `inventory` WHERE `nameid` = <itemid>;");
    

    Just remember to include the other databases that could contain items like storage and cart.

     

    But overall you understood what I meant quite well.

     

     

     

    Thank you so much skorm! I learned more that what I am asking. This is my first attempt to make a script. I hope it will end up good.

     

    I'll return the favor someday!

  4. Thankyou

     

     

     

    What if the NPC is in a different map?

    Here is how my even works:

     

    When the event starts, there's  a certain waiting time to gather participants and warp them to a different map. After that, the NPC will no longer accept participants. 

    And when the event ends, they will be automatically warped out without the need to talk to any npc.


    Another thing: I am planning to add a script to check for a specific item in their inventory everytime my players login and delete that item if it is available in their inventory.

    My concern with this is that, will it slow down my server since the script automatically runs every time someone logins?

    Im really sorry for the noob question. Just wanna make sure it wont hurt my server. :)

     

     

    The suggested code won't work unless the npc is located on the same map or the players are attached to the script... What I would do in this situation is create a static invisible dummy npc which resides on the map and have him keep the timer. In my experience that is the least resource intensive and the least likely to fail. So basically when your entrance npc starts the event trigger a label (donpcevent() ;) which starts a timer in the dummy npc that will eventually trigger the above script.

    It's ok to use commands like OnPCLogout & OnPCLogin when they are used in moderation... But if you're just trying to wipe your server of that specific item the best way is though SQL.

    For example:

    DELETE FROM `Inventory` WHERE `nameid` = <itemid>;
    

    Thankyou so much skorm!

    So the NPC in prontera will now just be a warper NPC, and when the waiting time has ended, it will no longer accept players (or it will be disabled) then it will activate the NPC which will hold the timer and the whole script?

    so is this what I should do on my script?

    this is just an example:
     

     

    OnInit:
    disablenpc "script NPC";
    end;
     
    OnClock0000:
    announce "The event has started!",bc_all,0xFF4500;
    enablenpc "warper in prontera"
    sleep2 30000;
    announce "Time's up! The warper will no longer accept participants!",bc_all,0xFF4500;
    disablenpc "event Warper";
    donpcevent "script NPC::EventStart";
    end;
     
    please correct me if I'm wrong. :) Thank you!
     
    EDIT: or would it be fine if I make an NPC that will do this SQL command that you given every let's say 12 midnight instead of using OnPCLogout & OnPClogin?
  5.  

    OnTimer600000:

        Announce "The event has ended!",0;

        addrid(1);

        delitem ID_ITEM,countitem(ID_ITEM);

        warp "prontera",156,191;

        end;

     

    Thank you so much I didn't expect that I will just add it there. :)

     

     

    Assuming the NPC is located on the same map as all the players in the event. :o

     

    What if the NPC is in a different map?

    Here is how my even works:

     

    When the event starts, there's  a certain waiting time to gather participants and warp them to a different map. After that, the NPC will no longer accept participants. 

    And when the event ends, they will be automatically warped out without the need to talk to any npc.

    Another thing: I am planning to add a script to check for a specific item in their inventory everytime my players login and delete that item if it is available in their inventory.

    My concern with this is that, will it slow down my server since the script automatically runs every time someone logins?

    Im really sorry for the noob question. Just wanna make sure it wont hurt my server. :)

  6. Hello, does anyone here knows how to make a script that deletes a specific item from all players in a certain map?

    I need my players to have a specific item to be deleted in their inventory when my event is finished.

     

    I know that the command for the script is delitem but I don't know how to apply it to all player in a specific map.

     

    Thanks in advance!

  7. For those who are experiencing a problem like the countdown is malfuctioning while in jail. You might be using an "Hourly Reward" script that uses "npctimer". You might want to disable your "hourly reward" script and see if the problem is fixed. :)

     

    Mine was fixed by disabling my hourly reward script that uses npctimer and replaced it with the one that uses playertimer. Hope it helped. :)

    • Upvote 2
  8. I see, so theres no problem with that since there is the option "skip packet header obfuscation" when I try to diff my exe.

    I think the only problem is the korean language I stated above which I think is in my GRF file. I tried using MyRO grf file and the login screen is in english.



    anyone who had the same problem and knows how to fix this. Please post it here. I will really appreciate your help.

  9. I am using:

     

    >2012-04-10aRagexeRE

    >latest stable data folder by judas (data_v3.0.7)

    >2012-04-10 Lub+src Files [Translated] by judas

    >and I downloaded my kro files from ratemyserver.net

     

    I am having a problem with .eot file. This problem started after updating the kRO.

     

    I tried to diff my client and uncheck the box that says read .eot files. but still nothing happened.

     

    I already tried to put the .eot files on system/Font but the problem is the language became korean and the messages (e.g. "Failed to Connect") became "NO MSG".

     

    My screenshots are attached below. I already searched for solutions and I came up with those I did stated above but I cant really fix it. This is my first time setting up a private server and Im a total noob. Any help would be appreciated.

     

    **edit: I think the problem here is not .eot files. The problem is in my GRF file.

    post-3299-0-06556300-1362849616_thumb.png

    post-3299-0-45114800-1362849624_thumb.png

  10. Can anyone help me with this problem? I encounter characters which i cant understand when I try to look at my items (alt+e) and quest (alt+u). I uploaded the screenshots regarding this.

    I think the problem is on the lua/lub files. I used the ones provided by judas I am using client 2012-04-10.

    If also possible, is there anyone there who has lua/lub files for this that is already fixed who can share it?

    Thank you very much. /no1

    post-3299-0-96322700-1353247070_thumb.png

    post-3299-0-65208600-1353247074_thumb.png

    post-3299-0-49825100-1353247083_thumb.png

×
×
  • Create New...