Jump to content

WhatFT

Members
  • Posts

    511
  • Joined

  • Last visited

Posts posted by WhatFT

  1. 
    

    prontera,149,194,5 script Server Time(+8GMT) 837,{

    end;

    OnInit:

    while(1) {

    set .@hour,gettime(3);

    set .@minute,gettime(2);

    delwaitingroom;

    waitingroom "Clock "+(.@hour > 12?""+(.@hour-12)+":"+(.@minute >= 10?""+.@minute+"":"0"+.@minute+"")+" PM":""+.@hour+":"+(.@minute >= 10?""+.@minute+"":"0"+.@minute+"")+" AM")+"",0;

    sleep 59000;

    }

    }

  2. /rathena/trunk/conf/groups.conf

     

    /*
    
    Player groups configuration file
    ---------------------------------
    
    This file defines "player groups" and their privileges.
    
    Each group has its id and name, lists of available commands and other 
    permissions, and a list of other groups it inherits from.
    
    
    Group settings
    --------------
    <id>
    Unique group number. The only required field.
    
    <name>
    Any string. If empty, defaults to "Group <id>". It is used in several @who 
    commands.
    
    <level>
    Equivalent of GM level, which was used in revisions before r15572. You can 
    set it to any number, but usually it's between 0 (default) and 99. Members of 
    groups with lower level can not perform some actions/commands (like @kick) on 
    members of groups with higher level. It is what script command getgmlevel() 
    returns. Group level can also be used to override trade restrictions 
    (db/item_trade.txt).
    
    <commands>
    A group of settings
    	<command name> : <bool>
    or
    	<commandname> : [ <bool>, <bool> ]
    First boolean value is for atcommand, second one for charcommand. If set to 
    true, group can use command. If only atcommand value is provided, false is 
    assumed for charcommand. If a command name is not included, false is assumed for 
    both atcommand and charcommand.
    For a full list of available commands, see: doc/atcommands.txt.
    Command names must not be aliases.
    
    <log_commands>
    Boolean value. If true then all commands used by the group will be logged to 
    atcommandlog. If setting is omitted in a group definition, false is assumed.
    Requires 'log_commands' to be enabled in 'conf/log_athena.conf'.
    
    <permissions>
    A group of settings
    	<permission> : <bool>
    If a permission is not included, false is assumed.
    For a full list of available permissions, see: doc/permissions.txt
    
    <inherit>
    A list of group names that given group will inherit commands and permissions 
    from. Group names are case-sensitive.
    
    Inheritance results
    -------------------
    Both multiple inheritance (Group 2 -> Group 1 and Group 3 -> Group 1) and
    recursive inheritance (Group 3 -> Group 2 -> Group 1) are allowed.
    
    Inheritance rules should not create cycles (eg Group 1 inherits from Group 2, 
    and Group inherits from Group 1 at the same time). Configuration with cycles is 
    considered faulty and can't be processed fully by server.
    
    Command or permission is inherited ONLY if it's not already defined for the 
    group.
    If group inherits from multiple groups, and the same command or permission is 
    defined for more than one of these groups, it's undefined which one will be 
    inherited.
    
    Syntax
    ------
    This config file uses libconfig syntax: 
    http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
    
    
    Upgrading from revisions before r15572
    -------------------------------------
    http://rathena.org/board/index.php?showtopic=58877
    */
    
    groups: (
    {
    	id: 0 /* group 0 is the default group for every new account */
    	name: "Player"
    	level: 0
    	inherit: ( /*empty list*/ )
    	commands: {
    		/* no commands by default */
    	}
    	permissions: {
    		/* without this basic permissions regular players could not 
    		trade or party */
    		can_trade: true
    		can_party: true
    	}
    },
    {
    	id: 1
    	name: "Super Player"
    	inherit: ( "Player" ) /* can do everything Players can and more */
    	level: 0
    	commands: {
    		/* informational commands */
    		commands: true
    		charcommands: true
    		help: true
    		rates: true
    		uptime: true
    		showdelay: true
    		exp: true
    		mobinfo: true
    		iteminfo: true
    		whodrops: true
    		time: true
    		jailtime: true
    		hominfo: true
    		homstats: true
    		showexp: true
    		showzeny: true
    		whereis: true
    		/* feature commands */
    		refresh: true
    		noask: true
    		noks: true
    		main: true
    		autoloot: true
    		alootid: true
    		autotrade: true
    		request: true
    		go: true
    		breakguild: true
    	}
    	permissions: {
    	}
    },
    {
    	id: 2
    	name: "Support"
    	inherit: ( "Super Player" )
    	level: 1
    	commands: {
    		version: true
    		where: true
    		jumpto: true
    		who: true
    		who2: true
    		who3: true
    		whomap: true
    		whomap2: true
    		whomap3: true
    		users: true
    		broadcast: true
    		localbroadcast: true
    	}
    	log_commands: true
    	permissions: {
    		receive_requests: true
    		view_equipment: true
    	}
    },
    {
    	id: 3
    	name: "Script Manager"
    	inherit: ( "Support" )
    	level: 1
    	commands: {
    		tonpc: true
    		hidenpc: true
    		shownpc: true
    		loadnpc: true
    		unloadnpc: true
    		npcmove: true
    		addwarp: true
    	}
    	log_commands: true
    	permissions: {
    		any_warp: true
    	}
    },
    {
    	id: 4
    	name: "Event Manager"
    	inherit: ( "Support" )
    	level: 1
    	commands: {
    		monster: true
    		monstersmall: true
    		monsterbig: true
    		killmonster2: true
    		cleanarea: true
    		cleanmap: true
    		item: [true, true]
    		zeny: [true, true]
    		disguise: [true, true]
    		undisguise: [true, true]
    		size: [true, true]
    		raise: true
    		raisemap: true
    		day: true
    		night: true
    		skillon: true
    		skilloff: true
    		pvpon: true
    		pvpoff: true
    		gvgon: true
    		gvgoff: true
    		allowks: true
    		me: true
    		marry: true
    		divorce: true
    		refreshall: true
    	}
    	log_commands: true
    	permissions: {
    		can_trade: false
    		any_warp: true
    	}
    },
    {
    	id: 10
    	name: "Law Enforcement"
    	inherit: ( "Support" )
    	level: 2
    	commands: {
    		hide: true
    		follow: true
    		kick: true
    		disguise: true
    		fakename: true
    		option: true
    		speed: true
    		warp: true
    		kill: true
    		recall: true
    		ban: true
    		block: true
    		jail: true
    		jailfor: true
    		mute: true
    		storagelist: true
    		cartlist: true
    		itemlist: true
    		stats: true
    	}
    	log_commands: true
    	permissions: {
    		join_chat: true
    		kick_chat: true
    		hide_session: true
    		who_display_aid: true
    		hack_info: true
    		any_warp: true
    		view_hpmeter: true
    	}
    },
    {
    	id: 99
    	name: "Admin"
    	level: 99
    	inherit: ( "Support", "Law Enforcement" )
    	commands: {
    		/* not necessary due to all_commands: true */
    	}
    	log_commands: true
    	permissions: {
    		can_trade: true
    		can_party: true
    		all_skill: false
    		all_equipment: false
    		skill_unconditional: false
    		use_check: true
    		use_changemaptype: true
    		all_commands: true
    	}
    }
    )
    
    

     

    Change


    all_skill: false
    

     

     

    to

    all_skill: true
    
    • Upvote 1
    • Love 1
  3. How to import it :(



    You have to import the item_db.sql in your database to able to add items into your item shop.

     

    How to import it  :(



    You have to import the item_db.sql in your database to able to add items into your item shop.

    How to import item_db.sql and where will I put it?

  4. How to add Items in the Item Shop?

     

    I already search every topics posted in this section, I followed those links and etc but still I can't fix it :(

     

    I tried to put an Item but after I put it, it says "Failed to add Item"

     

    I saw a topic and there is item_db.sql, mob_db.sql what is that?

  5. I got a bug in my server, Some of my jobs got permanent Platinum Skills like (Backslide) because I made an Item script were they can change job whenever they want. But the problem is, when they get the platinum skill of that job and change to another job, the platinum skill of the previous job still remain... 

     

    How to remove/reset it? I can't removed it using @reset or event ResetSkill; thanks :)

  6. -	script	custom_bg#control	-1,{
    OnInit:
    	set .minplayer2start, 4; // minimum player to start
    	setarray .rewarditem,
    		30153, 10, // reward to the winning team
    		30153, 3; // reward to the losing team
    	set .startingscore, 20; // score at start
    	set .eventlasting, 100; // event last 100 seconds or the system abort itself
    	end;
    onstart:
    	if ( getwaitingroomstate( 0, .rednpcname$ ) < .minplayer2start || getwaitingroomstate( 0, .bluenpcname$ ) < .minplayer2start ) end;
    	set .red, waitingroom2bg( "guild_vs2", 8,50, strnpcinfo(0)+"::OnredQuit", strnpcinfo(0)+"::OnredDead", .rednpcname$ );
    	copyarray .team1aid[.@i], $@arenamembers[.@i], $@arenamembersnum;
    	set .blue, waitingroom2bg( "guild_vs2", 91,50, strnpcinfo(0)+"::OnblueQuit", strnpcinfo(0)+"::OnblueDead", .bluenpcname$ );
    	copyarray .team2aid[.@i], $@arenamembers[.@i], $@arenamembersnum;
    	delwaitingroom .rednpcname$;
    	delwaitingroom .bluenpcname$;
    	bg_warp .red, "guild_vs2", 8,50;
    	bg_warp .blue, "guild_vs2", 91,50;
    	set .score[1], .startingscore;
    	set .score[2], .startingscore;
    	bg_updatescore "guild_vs2", .score[1], .score[2];
    	sleep .eventlasting * 1000;
    	if ( .score[1] == .score[2] )
    		announce "Deathmatch Ground : Draw !", 0;
    	else if ( .score[1] > .score[2] ) {
    		announce "Deathmatch Ground : Red Team Wins !", 0;
    		callsub L_reward, 1, 0;
    		callsub L_reward, 2, 2;
    	}
    	else if ( .score[1] < .score[2] ) {
    		announce "Deathmatch Ground : Blue Team Wins !", 0;
    		callsub L_reward, 2, 0;
    		callsub L_reward, 1, 2;
    	}
    	OnTimer50000:
    		announce "Deathmatch Ground is now open for another match @ prontera 156 170 !",0;
    	bg_warp .red, "prontera", 156,191;
    	bg_warp .blue, "prontera", 156,191;
    	bg_destroy .red;
    	bg_destroy .blue;
    	donpcevent .rednpcname$ +"::OnInit";
    	donpcevent .bluenpcname$ +"::OnInit";
    	end;
    L_reward:
    	set .@size, getarraysize( getd(".team"+ getarg(0) +"aid") );
    	for ( set .@i, 0; .@i < .@size; set .@i, .@i +1 )
    		if ( isloggedin( getd(".team"+ getarg(0) +"aid["+ .@i +"]" ) ) )
    			getitem .rewarditem[ getarg(1) ], .rewarditem[ getarg(1) +1 ], getd(".team"+ getarg(0) +"aid["+ .@i +"]" );
    	return;
    OnredDead: callsub L_dead, 1;
    OnblueDead: callsub L_dead, 2;
    L_dead:
    	set .score[ getarg(0) ], .score[ getarg(0) ] -1;
    	bg_updatescore "guild_vs2", .score[1], .score[2];
    	if ( .score[ getarg(0) ] == 0 )
    		awake strnpcinfo(0);
    	sleep2 1500;
    	percentheal 100,100;
    	end;
    OnredQuit: callsub L_quit, 1, .red;
    OnblueQuit: callsub L_quit, 2, .blue;
    L_quit:
    	percentheal 100, 100;
    	if ( bg_get_data( getarg(1), 0) ) end;
    	set .score[ getarg(0) ], 0;
    	awake strnpcinfo(0);
    	end;
    }
    
    prontera,151,165,5	script	Red Team	733,{
    	end;
    OnInit:
    	waitingroom "Red Team", getvariableofnpc( .minplayer2start, "custom_bg#control" ) +1, "custom_bg#control::onstart", getvariableofnpc( .minplayer2start, "custom_bg#control" );
    	set getvariableofnpc( .rednpcname$, "custom_bg#control" ), strnpcinfo(0);
    	end;
    }
    prontera,160,165,5	script	Blue Team	734,{
    	end;
    OnInit:
    	waitingroom "Blue Team", getvariableofnpc( .minplayer2start, "custom_bg#control" ) +1, "custom_bg#control::onstart", getvariableofnpc( .minplayer2start, "custom_bg#control" );
    	set getvariableofnpc( .bluenpcname$, "custom_bg#control" ), strnpcinfo(0);
    	end;
    }
    guild_vs2	mapflag	battleground	2
    guild_vs2	mapflag	nosave	SavePoint
    guild_vs2	mapflag	nowarp
    guild_vs2	mapflag	nowarpto
    guild_vs2	mapflag	noteleport
    guild_vs2	mapflag	nomemo
    guild_vs2	mapflag	nopenalty
    guild_vs2	mapflag	nobranch
    guild_vs2	mapflag	noicewall
    

     

    I'm currently using this script and it's working...

     

    But, I just want to make this script to be a "RANDOM TEAM"...

     

    The idea is if the rooms are completely occupied, the script will automatically randomize the players who entered a pub and form their own team like the default (Red & Blue Teams)... 

     

    Need help here especially to the creator of the script XD Thank Youu !!

    Need help how to make this randomized

    Bump*

  7. //FAST TYPE EVENT
    //Credits to Emistry for making the script
    //Paulinds for requesting the script, details & idea.
    
    prontera,127,167,5	script	Fast-Type Event	421,{
    
    if(getgmlevel() >= 99) callsub L_GM;
    if( !.Event ) { 
    	mes "There is no Event right now.";
    } else if ( .String$ == "" ) {
    	npctalk "Wait for the next round..";
    
    } else {
    	mes "Type the Correct Sentences.";
    	mes "^FF0000" + .String$ + "^000000";
    	input .@Type$;
    	if( .String$ == "" ) {
    		announce "Sorry, " + strcharinfo(0) + " is a bit slow..",0;
    		close;
    	}
    	if ( .String$ == .@Type$ && .Event ) {
    		getitem 30153, 3; //EDIT THE PRIZE HERE 
    		announce "Fast-Type Event: " + strcharinfo(0) + " typed the correct string!",0;
    		set .String$, "";
    		set .Round, .Round + 1;
    		donpcevent "Fast-Type Event::OnStart2";
    	} else {
    		announce "" + strcharinfo(0) + " mispelled some strings XD",0;
    	}
    }
    close;
    
    OnMinute00:
    OnMinute30:
    if(.Event) end;
    donpcevent "Fast-Type Event::OnStart";
    end;
    
    OnStart:
    announce "Fast-Type Event has started at Prontera 125 165 !",0;
    L_Begin:
    set .Event, 1;
    set .String$, "";
    while( getstrlen( .String$ ) < .Length ){
    	set .String$,.String$ + .List$[ rand( getarraysize( .List$ ) ) ];
    }
    announce "Round "+(.Round+1)+" Started !",0;
    end;
    
    OnStart2:
    sleep2 5000;
    if(.Round == .Rounds) {
    	if(!.Event) end;
    	announce "Fast-Type Event: Event is over!",0;
    	set .Event, 0;
    	set .Round, 0;
    	end;
    }
    if(!.Event) end;
    announce "Fast-Type Event: Next round starts in 5 seconds...",0;
    sleep2 5000;
    if(!.Event) end;
    goto L_Begin;
    
    L_GM:
    mes "Fast-Type event is" + (.Event?"^00FF00 ON^000000":"^FF0000 OFF^000000");
    if(select((!.Event?"^00FF00Start":"^FF0000End") + " Event^000000","Normal Player") == 2) return;
    switch(.Event) {
    	case 1:
    		set .Event, 0;
    		set .Round, 0;
    		set .String$, "";
    		announce "Fast-Type Event: A GM has ended the event.",0; break;
    	default: 
    		donpcevent "Fast-Type Event::OnStart";
    }
    close;
    
    OnInit:
    set .Length,28; //EDIT THE LENGTH OF CHARACTERS TO BE TYPED
    set .Rounds,5; //EDIT THE ROUNDS 
    setarray .List$,";","B","_","D","E","%","=","H","I","J","/","L","M","N","6","P","Q","]","S","T",","; //YOU CAN ADD LETTERS, DIGITS & SYMBOLS HERE..
    end;
    }
    
    

     

    Here is the Fixed Fast Type Event

    • Upvote 1
  8. Why does everytime I use FCP it only gives Chemical Protect Helm? and sometimes it says "Skill Failed" even I have 999 Glistening Coat in inventory..

     

     

    I'm using rAthena - Pre Renewal

×
×
  • Create New...