Jump to content

uDe

Members
  • Posts

    400
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by uDe

  1. Oooo.. Know i know.. 

    For the second method i dont have any command like @checkpoints...

    Btw im using the first method.. Thanks anyway dude ^ ^

    **Edit**

    Sir... When relog ther is no cash point showing ... =="

    Must restart server?..?

     

    You did have @checkpoints command..

     

    It's there, at line 4 :

     

    // @checkpoints
    -    script    Sample    -1,{
        OnInit:
            bindatcmd("checkpoints", strnpcinfo(3)+ "::OnCheck"); // << This is your new custom @command
            end;
    OnPCLoginEvent:
    dispbottom "You currently have " +#CASHPOINTS+ " cash points";
            dispbottom "You currently have " +#KAFRAPOINTS+ " kafra points";
            end;
        OnCheck:
            dispbottom "You currently have " +#CASHPOINTS+ " cash points";
            dispbottom "You currently have " +#KAFRAPOINTS+ " kafra points";
            end;
    }
    

    For your problems, please post your script/map-server errors at here. Easy for other members to help you.

  2. It's just for testing purpose. Just now, I knew that mp3 file name must not content any other characters except 0 to 1 and A to Z.


    New Edit :

     

    Ah~ /panic

     

    I've decided to share my script with you. This is my first script for playing song at my server.

     

    The script below will randomly play your songs.

     

    -	script	nRO#MP3	-1,{
    end;
    OnMinute03: // For this script, I didn't use array to set the song timer. So, you can just roughly add the timer to play the next song.
    OnMinute08:
    OnMinute13:
    OnMinute18:
    OnMinute23:
    OnMinute28:
    OnMinute33:
    OnMinute38:
    OnMinute43:
    OnMinute48:
    OnMinute53:
    OnMinute58:
    
    
    switch(rand(1,3)) { // please edit this line if you're adding more songs. If you have 10 songs, then edit like this >> switch(rand(1,10)) {
    
    case 1: 
    announce "[NeutralRO MP3] : Now playing deadmau5 - Raise your weapon. Enjoy!",bc_all,0xDA70D6;
    playBGMall "raiseurweapon";
    break;
    
    case 2:
    announce "[NeutralRO MP3] : Now playing Kidz Bop - Starship. Enjoy!",bc_all,0xFFFF00;
    playBGMall "kidzstarship";
    break;
    
    case 3:
    announce "[NeutralRO MP3] : Now playing Maroon 5 - Payphone. Enjoy!",bc_all,0xDA70D6;
    playBGMall "payphone";
    break;
    
    //case 4:
    //announce "<YOUR ANNOUNCE HERE>",bc_all,0xDA70D6;
    //playBGMall "<YOUR MP3 FILENAME>";
    //break;
    
    	}
    }
    

    The instruction is already on the script. Easy to understand.

     

    Of course I've better script than this. But it's for my own server use. /ok

  3. sir we did it already but in guild_vs3 still cannot attack if they are disame guild. even we did mapflag already how we can fixed this :(

     

     

    Try the mapflag pvp_noguild

    //= Ignores guild alliances on GvG-enabled maps.

     

    Sorry, I'm forgot about this too.. /sry

  4. On line 7. Remove the "//". Load the script. Click the Bunny. @unloadnpc. Then add those "//" again. Now load the NPC. Don't @reloadscript when the event is running, it messes with the variable.

     

    How about adding

     

    OnInit:
    set $EasterEggEvent, 0;
    

    I mean the event will reset after @reloadscript or server restart right?

     

    why we start the event there are popup ? huhu 

     

    Because of this :

    The exact coordinates of the egg is given to all the GMs

     

    atcommand "@request ["+$@mapee$+", "+$@eex+","+$@eey+"]";
    

    @request command are used.

     

    ---------------------------------------------------------------------------------------------------------------

     

    But, Instead of using @request to tell all GM where's the egg is. I would like to suggest using dispbottom function. Like this :

     

    //	atcommand "@request ["+$@mapee$+", "+$@eex+","+$@eey+"]";
    	dispbottom "Egg Coordinate : ["+$@mapee$+", "+$@eex+","+$@eey+"]";
    

     

    Because maybe sometime you want to give some rare item and it will prevent your GM's to dual client by using their normal ID to easily get the egg.

     

    By the way this is a nice and easy to understand script. Good job. /no1

  5. [09/Aug 17:24][Debug]: status_change_timer: Null pointer id: 110024029 data: 1 bl-type: 2
    [09/Aug 17:24][Debug]: status_change_timer: Null pointer id: 110024036 data: 1 bl-type: 2
    [09/Aug 17:24][Debug]: status_change_timer: Null pointer id: 110024027 data: 1 bl-type: 2
    [09/Aug 17:24][Debug]: status_change_timer: Null pointer id: 110024020 data: 1 bl-type: 2
    [09/Aug 17:25][Debug]: status_change_timer: Null pointer id: 110024032 data: 1 bl-type: 2
    [09/Aug 17:25][Debug]: status_change_timer: Null pointer id: 110024039 data: 1 bl-type: 2
    [09/Aug 17:26][Debug]: status_change_timer: Null pointer id: 110024028 data: 1 bl-type: 2
    [09/Aug 17:26][Debug]: status_change_timer: Null pointer id: 110024030 data: 1 bl-type: 2
    
    

     

    I had this debug from Dota Runes script (I think).. Because after a while, the Runes NPC won't appear for last few days. I need to reload the script.

     

    But today, I've waited about 6 hours and just now the debug from above appear on map-server. But this time, the Runes NPC are still working. It's really makes me confuse why for the past few days, I need to reload the script because the Runes NPC didn't show up after a minute. Is this related to that debug?

     

    EDIT 1 : Ahh~ I don't know if this was the real problems. Is it? > http://rathena.org/board/tracker/issue-7499-status-change-timer-weird/

     

    EDIT 2 : I've leave the script running for almost a day then when I'm online. This problem happend :

     

    vKF2VlP.png

     

    NPC won't appear after a minute. So, I need to @loadnpc again..

     

    Here's the script :dota_runes.txt

  6. Here's the complete solution for your Izlude map : http://rathena.org/board/topic/68144-new-izlude/

     

    If you want to use GVG map as PVP map, please go to :

     

    trunk/conf/mapflag/gvg.txt and comment "//" the map that you want to use as PVP map.

     

    //mapname<TAB>mapflag<TAB>gvg
    
    // GvG Arenas =============
    guild_vs1	mapflag	gvg
    guild_vs2	mapflag	gvg
    //guild_vs3	mapflag	gvg
    guild_vs4	mapflag	gvg
    //guild_vs5	mapflag	gvg
    

     

     

    trunk/conf/mapflag/pvp.txt and add the GVG map into that file.

     

    //mapname<TAB>mapflag<TAB>pvp
    
    ////////////
    //PVP ROOM//
    ////////////
    guild_vs3	mapflag	pvp
    guild_vs5    mapflag   pvp
    
  7. My problem still doesn't solve. But I've found a way to enable admin @command at PVP maps.

     

    It's like this :

     

    trunk/conf/mapflag/nocommand.txt

     

    //map<TAB>mapflag<TAB>nocommand<TAB>99
    
    //pvp_2vs2    mapflag    nocommand    99 // << I think had to disabled this because I'm using NPC script for nocommand mapflag.
    guild_vs5    mapflag    nocommand    99 // << I can use @command for admin at this map. So, I didn't insert it in nocommand mapflag npc script.
    //pvp_y_8-1    mapflag    nocommand    99
    //pvp_y_8-2    mapflag    nocommand    99
    //guild_vs3    mapflag    nocommand    99
    guild_vs1    mapflag    nocommand    99
    z_agit    mapflag    nocommand    99
    power_plant    mapflag    nocommand    99
    warcage    mapflag    nocommand    60
    

    trunk/npc/myscriptfolder/nocommand.txt

     

    //map<TAB>mapflag<TAB>nocommand<TAB>99
    
    //PVP Maps
    
    pvp_2vs2	mapflag	nocommand	99
    pvp_y_8-1	mapflag	nocommand	99
    pvp_y_8-2	mapflag	nocommand	99
    guild_vs3	mapflag	nocommand	99
    

     

    It's working if like that. But, when I use @reloadscript, seems like npc script for nocommand.txt won't load. Then I need to manually @loadnpc npc/myscriptfolder/nocommand.txt in game everytime after @reloadscript. So, is there any explanation or solution for this?

  8. Hello~

     

    I want to request a script for NPC Reward.

     

    You can the script below and please make it in-game configuration for giving item, cashpoint and vip duration (Group Level 1 = VIP) per ID.

     

    Also, an Admin can remove all the reward from NPC and when players click on that NPC, NPC will reply "Sorry, there's no reward at this time.".

     

    The purpose of this script is to save some time for setting the rewards at script.

     

    prontera,139,174,5	script	Maria Curry#01	681,{
    mes " ^00FF00=======================^000000";
    mes " ";
    mes "	^7B68EEMaintenance Gift^000000	";
    mes " ";
    mes " ^00FF00=======================^000000";
    next;
    if(##Maintenance03 == 1) goto L_1;
    mes "[Maria Curry]";
    mes " ";
    	mes "Greetings "+strcharinfo(0)+"!!!";
    	mes " ";
    	mes "Thank you for you patience for NeutralRO Emergency Maintenance..";
    	mes "We would like to thank you by giving some gifts..";
    	mes "But, the NPC that will giving you the presents will only available at 10.00PM on April 27 until 10.00PM on April 29 which mean, only for ^FF000048 HOURS!^000000";
    	mes "So, DO NOT miss your chance to get some rare gifts form the NPC.";
    next;
    mes "[Maria Curry]";
    mes " ";
    mes "Oh ya! Do not forget to tell all your friends about this. They cannot miss this!! ;D";
    next;
    set #CASHPOINTS,#CASHPOINTS+500;
    dispbottom "You have currently " +#CASHPOINTS +" Cash Points!";
    getitem 30144,1;
    rentitem 30465,1209600;
    callfunc "vip_add", 86400 * 14;
    dispbottom "Your VIP has been added for 14 days..!";
    npctalk "Thank you and enjoy the game "+strcharinfo(0)+"!";
    emotion e_thx;
    set ##Maintenance03,1;
    close;
    
    L_1:
    mes "[Maria Curry]";
    mes "Sorry I can't give you more.";
    mes " ";
    mes "^FF0000Maintenance Gift has been given to this ID..^000000";
    mes " ";
    mes "Please check your inventory to see the  items..";
    emotion e_bzz;
    close;
    
    OnInit:
    
    	waitingroom "Maintenance Gift!!",0,0;
    	end;
    }
    
    

    Hopefully, it will work with rentitem. Example on script above at line 25 :

     

    rentitem 30465,1209600;

     

     

  9. wew..been so long ..... if you still need this ...

     

    Thanks @Emistry. But my problem was solved by @AnnieRuru long time ago by PM. Thanks again for remind me of this thread, I'm forgot already. But still I believe your new Refine Funtion script will be useful. FYI, for refine rentitem equipments, I've use your previous script from Post #4 and it's working perfectly.

     

    And for de-refine without removing the rentitem durations, @AnnieRuru was helping me by edit the script from Post #6.

     

    Here it is :

     

    prontera,155,175,3	script	De-Refiner	85,{
    	set .@npc$,"[^0065DFThe Smith^000000]";
    	mes .@npc$;
    	mes "Hello..";
    	mes " ";
    	mes "I can de-refine all your refined equipments.";
    	mes "Please make sure you have equipped the items.";
    	next;
    //	the next line "setarray" is to store the item ID of the character. Because player with their own hexed client ( aka. hacker ) might change equipment during the talk to npc
    	setarray @equip[1],getequipid(1),getequipid(2),getequipid(3),getequipid(4),getequipid(5),getequipid(6),getequipid(7),getequipid(8),getequipid(9),getequipid(10);
    //	store the equipment placement so I can optimize the script
    	setarray .@a[1],256,16,32,2,4,64,8,128,512,1;
    	select(getequipname(1),getequipname(2),getequipname(3),getequipname(4),getequipname(5),getequipname(6),getequipname(7),getequipname(8),getequipname(9),getequipname(10));
    		if ( !getequipisequiped(@menu) ) {
    			mes .@npc$;
    			mes "There's nothing equipped there...";
    			close; }
    		if (countitem(7539)<10) {
    			mes .@npc$;
    			mes "You don't have enough Poring Coin to pay me to work with your equipment.";
    			close; }
    		if ( getequiprefinerycnt(@menu) > 10 || getequiprefinerycnt(@menu) == 0 ) {
    			mes .@npc$;
    			mes "This item cannot be de-refine.";
    			close; }
    	//	now we make a check on them ... 
    		if ( getequipid(@menu) != @equip[@menu] ) {
    			mes .@npc$;
    			mes "Do you think I am that stupid?";
    			mes "You have changed the equipment !!";
    			mes "Get lost !!";
    			close; }
    //	atcommand "@refine "+ .@a[@menu] +" -1";
    	downrefitem @menu;
    	delitem 7539,10;
    	mes .@npc$;
    	mes "Your equipment has successfully de-refined.";
    	close;
    }
    
×
×
  • Create New...