Jump to content

Akbare

Members
  • Posts

    478
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by Akbare

  1. On 6/4/2013 at 10:58 PM, Bradium said:

    Hi capuche,

    Thank you very much for being so kind but this script below is what I really wanted with a twist.

    Could you add a specific area for the cashpoints to run? And if the player goes out of that area he/she will not gonna get any cashpoints.

    Also, the reason why I wanted this script coz it prevents people getting cashpoint while they're afk.

    -	script	hourlypoints	-1,{
    
    //--Start of the Script
    OnPCLoginEvent:
    attachnpctimer ""+strcharinfo(0)+"";
    initnpctimer;
    end;
    
    
    OnTimer30000:
    //Check if Vending (normal or @at)
    if(checkvending() >= 1 || checkchatting() == 1) {
    	dispbottom "The hourly points event stopped because you were vending / chatting. Please relog if you wish to start again.";
    	stopnpctimer;
    	end;
    }
    //Check if Idle
    getmapxy( .@map$, .@x, .@y, 0 );
    if(@map$ == .@map$ && @x == .@x && @y == .@y) {
    	set @afk, @afk + 1;
    }
    //If move timer resets
    else {
    	set @afk, 0;
    }
    	set @map$, .@map$; set @x, .@x; set @y, .@y;
    //Idle Check for 5 Minutes
    if(@afk == 99999999) {
    	dispbottom "The hourly points event stopped because you were idle. Please relog if you wish to start again.";
    	stopnpctimer;
    	end;
    }
    end;
    
    OnTimer60000:
    set @minute, @minute + 1;
    //Check for 1 Minute
    if(@minute == 1){
    	set @minute,0;
    	set .@point_amt, 1; //Points to get every hour (default: 10)
    	set #CASHPOINTS, #CASHPOINTS + [email protected]_amt;
    	dispbottom "You received "+.@point_amt+" Cashpoint by staying ingame for a minute!";
    	dispbottom "Current Balance = "+#CASHPOINTS+" Cashpoints";
    	set @consecutive_hour, @consecutive_hour + 1;
    	}
    //Check for 12 hours consecutive
    	if(@consecutive_hour == 60) {
    	set @consecutive_hour,0;
    	set .@cpoint_amt, 20; //Points to get for 12 Consecutive hours (default: 50)
    	set #CASHPOINTS, #CASHPOINTS + [email protected]_amt;
    	dispbottom "You receive "+.@cpoint_amt+" Cashpoints by staying ingame for an hour!";
    	dispbottom "Current Balance = "+#CASHPOINTS+" Cashpoints";
    	}
    
    stopnpctimer;
    initnpctimer;
    end;
    
    
    }

    any update sir ?

  2. 20 hours ago, ManokStreZ said:

    saya baru beli vps , terus mw masang flux cp..

    dapat error kayak gini, dimana ya penjelasannya ? udh posting dimari masih gak paham saya.

    ini juga kaget ternyata rathena ada buat postingan indo, klw ada yg berkenan bantu tolong disini gk paham sama sekali saya

     

     

    werwer.jpg

    masuk ke phpmyadmin, buat user baru atau pakai user root

    setting di folder fluxnya config/servers.php

    coba refresh 

  3. I have an instance
    I've been inside but then I die,

    how to return to the instance?

    Is there a script command that can be given to npc

     

    thx

     

    i'm use instance simple script

     

    //===== rAthena Script =======================================
    //= Sample: Instancing
    //===== By: ==================================================
    //= Euphy
    //===== Last Updated: ========================================
    //= 20140129
    //===== Description: ========================================= 
    //= Contains elements of a basic instance script.
    //============================================================
    
    // Before running this script, add the entry below to
    // 'db/(pre-)re/instance_db.txt':
    // 100,Abyss Lake Instance,3600,300,abyss_03,160,155
    
    // Instance Creation
    //============================================================
    prontera,151,190,6	script	Sample Instance	101,{
    	[email protected]$ = "Rent Location";
    
    	if (instance_id()) {  // ignore the console debug message (harmless)
    		mes "[Sample Instance]";
    		mes "You are already part of an instance.";
    		next;
    		switch(select("Enter Instance.:Cancel.")) {
    		case 1:
    			break;
    		case 2:
    			mes "[Sample Instance]";
    			mes "You don't want to try again?";
    			emotion ET_CRY;
    			close;
    		}
    	} else {
    		mes "[Sample Instance]";
    		mes "Would you like to try the sample instance in Abyss Lake 3?";
    		next;
    		switch(select("Create Instance.:Cancel.")) {
    		case 1:
    			[email protected] = instance_create([email protected]$);
    			if ([email protected] < 0) {
    				mes "[Sample Instance]";
    				switch ([email protected]) {
    					case -1: mes "ERROR: Invalid type."; break;
    					case -2: mes "ERROR: Party not found."; break;
    					case -3: mes "ERROR: Instance already exists."; break;
    					case -4: mes "ERROR: No free instances."; break;
    				}
    				mes " ";
    				mes "Instance creation ^FF0000failed^000000.";
    				emotion ET_HUK;
    				close;
    			}
    			mes "[Sample Instance]";
    			mes "Instance created.";
    			mes " ";
    			mes "Now entering the instance...";
    			next;
    			break;
    		case 2:
    			mes "[Sample Instance]";
    			mes "Okay. Maybe next time!";
    			close;
    		}
    	}
    	[email protected] = instance_enter([email protected]$);
    	if ([email protected] != 0) {
    		mes "[Sample Instance]";
    		switch ([email protected]) {
    			case 1: mes "ERROR: Party not found."; break;
    			case 2: mes "ERROR: Party does not have an instance."; break;
    			case 3: mes "ERROR: Unknown error."; break;
    		}
    		mes " ";
    		mes "Instance entry ^FF0000failed^000000.";
    		emotion ET_HUK;
    		close;
    	}
    	close;
    }
    
    // Instance Scripts
    //============================================================
    abyss_03,154,159,6	script	Instance NPC#start	101,{
    	mes "[Instance NPC]";
    	mes "Are you ready to begin?";
    	next;
    	switch(select("Yes.:No.")) {
    	case 1:
    		mes "[Instance NPC]";
    		mes "Good luck.";
    		close2;
    		donpcevent instance_npcname("#ins_abyss03_mobs")+"::OnEnable";
    		delwaitingroom;
    		disablenpc instance_npcname(strnpcinfo(0));
    		end;
    	case 2:
    		mes "[Instance NPC]";
    		mes "Take your time.";
    		close;
    	}
    	end;
    
    OnInit:  // hide the NPC on the normal map
    	disablenpc strnpcinfo(0);
    	end;
    OnInstanceInit:  // initialize the NPC when the instance is created
    	disablenpc instance_npcname("abysslakedunwarp004");  // disable original warp portal (currently buggy)
    	waitingroom "Click here to start!",0;
    	end;
    }
    
    abyss_03,0,0,0	script	#ins_abyss03_mobs	-1,{
    	end;
    OnEnable:
    	initnpctimer;
    	end;
    OnTimer1000:  //strnpcinfo(4) will retrieve the instanced map name
    	mapannounce strnpcinfo(4),"Instance NPC: The Abyss Lake instance has begun.",bc_all;
    	end;
    OnTimer4000:
    	mapannounce strnpcinfo(4),"Instance NPC: Smash the Treasure Chest in the center of the map for a prize.",bc_all;
    	end;
    OnTimer5000:
    	stopnpctimer;
    
    	// spawn mobs
    	[email protected]$        = instance_mapname("abyss_03");
    	[email protected]$      = instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
    	[email protected]_boss$ = instance_npcname(strnpcinfo(0))+"::OnMyBossDead";
    	monster [email protected]$,0,0,"Huge Poring",1002,20,[email protected]$,2;
    	monster [email protected]$,0,0,"Huge Drops",1113,15,[email protected]$,2;
    	monster [email protected]$,0,0,"Huge Poporing",1031,10,[email protected]$,2;
    	monster [email protected]$,0,0,"Huge Marin",1242,10,[email protected]$,2;
    	monster [email protected]$,0,0,"Tiny Zombie",1015,30,[email protected]$,1;
    	monster [email protected]$,0,0,"Huge Mime Monkey",1585,2,[email protected]$,2;
    	monster [email protected]$,97,102,"Treasure Chest",1732,1,[email protected]_boss$,2;
    	end;
    OnMyMobDead:  // normal mobs
    	dispbottom "What am I doing? I should be attacking the Treasure Chest!";
    	viewpoint 0,97,102,0,0xFF0000;
    	switch (rand(6)) {  // for fun (:
    		case 0: sc_start SC_STONE,5000,0; break;
    		case 1: sc_start SC_FREEZE,5000,0; break;
    		case 2: sc_start SC_STUN,5000,0; break;
    		case 3: sc_start SC_SLEEP,5000,0; break;
    		case 4: sc_start SC_CONFUSION,5000,0; break;
    		case 5: sc_start SC_BLIND,5000,0; break;
    	}
    	end;
    OnMyBossDead:  // treasure chest
    	specialeffect2 EF_MVP;
    	getitem 512,1; //Apple
    
    	// trigger other events
    	[email protected]$   = instance_mapname("abyss_03");
    	[email protected]$ = instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
    	killmonster [email protected]$,[email protected]$;
    	mapannounce [email protected]$,"Instance NPC: Good work! Please speak to me as soon as possible.",bc_all;
    	donpcevent instance_npcname("Instance NPC#finish")+"::OnEnable";
    	end;
    }
    
    abyss_03,97,102,4	script	Instance NPC#finish	101,{
    	mes "[Instance NPC]";
    	mes "Congratulations! You've finished the instance.";
    	mes "I'll send you back to town now.";
    	emotion ET_BEST;
    	close2;
    	warp "prontera",156,191;
    	instance_destroy();
    	end;
    
    OnInit:
    	disablenpc strnpcinfo(0);
    	end;
    OnInstanceInit:
    	disablenpc instance_npcname(strnpcinfo(0));
    	end;
    OnEnable:
    	enablenpc instance_npcname(strnpcinfo(0));
    	specialeffect EF_HIDING;
    	end;
    }
    
    abyss_03,115,26,0	script	#ins_abyss03_warp	45,5,5,{
    	end;
    OnTouch:
    	mes "Are you sure you want to leave?";
    	next;
    	switch(select("Leave.:Stay.")) {
    	case 1:
    		warp "prontera",156,191;
    		break;
    	case 2:
    		warp strnpcinfo(4),160,155;
    		break;
    	}
    	close;
    OnInit:
    	disablenpc strnpcinfo(0);
    	end;
    }

     

  4. try it

     

    item_db.txt

    618,Worn_Out_Scroll,Worn Out Scroll,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "callscroll"; },{},{}

     

    npc

    function	script	callscroll	{
    if(countitem(1155) < 1 || countitem(1037) < 250 ||	countitem(1036) < 100) goto L_NOITEMS;
    	getitem 1160,1;	//(Broad_Sword)
    	mes "Sword Craft";
    	close;
    	
    L_NOITEMS:
    	mes "item not completed";
    	getitem 618,1;	//worn out scroll
    	close;
    }

     

    change ID item with your itemID

  5. 2 minutes ago, ScarrFace said:

    i did but nothing happen

    patcher works but when i upload website files nothing happen. and what to put on nameservers on domain to work or to read the vps platform?

    may I know what web you are using? for fluxcp it will automatically read

  6. On 12/2/2020 at 7:26 AM, AngelaKiss said:

    hello, this is how the name is showing actually, i want to only show the name of the mob without affecting other mobs. only to an specific mobid or called with npc to only show "Zombie"

    game_j5IkOu4ADQ.png

    disable mob info ? or what ?

    conf/battle/monster.conf

    show_mob_info: 0

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.