Jump to content

Deleted User

Members
  • Posts

    235
  • Joined

  • Days Won

    6

Posts posted by Deleted User

  1. 40 minutes ago, ragexe said:
    
    prontera,150,166,4	script	Test	777,5,5,{
    
    npctalk "Hey you"+getcharid(3);
    sleep 5000;
    unittalk getcharid(3), "Hey";
    sleep 10000;
    
    
    end;
    }

    i got error in map server got 
    [Error]buildin_getcharid: fatal error ! player not attached!
    [Debug]: Function: getcharid(1 parameter);
    [Debug]: Data: number value=3
    [Debug]: Source (NPC): Test at prontera (150,166)
    someone can help me to fix this?

    prontera,150,166,4	script	Test	777,5,5,{
    	end;
    OnTouch:
    	npctalk "Hey you "+strcharinfo(0);
    	sleep2 5000;
    	unittalk getcharid(3), "Hey";
    	sleep2 10000;
    	end;
    }

     

  2. 43 minutes ago, Questune09 said:

    good day i would like to ask why this script not working???

     

    is there something wrong with this script? should i missed some details??

     

    also please help me how to make this a random item thank you

    
    -	script	max_lv	99,{
    
    	// Configuration
    	OnInit:
    		.max_base = 175;
    		.max_job = 60;
    		.item_id = 19546;
    		.amount = 1;
    		end;
    		
    	// Script
    	OnPCBaseLvUpEvent:
    	OnPCJobLvUpEvent:
    		// Determine if Base Level and Job Level are max
    		if (BaseLevel == .max_base && JobLevel == .max_job) {
    			// Receive reward
    			getitem .19546, .1;
    			
    			// Display confirmation message
    			message strcharinfo(0), "Congratulations! You have received "+ .amount +" "+ getitemname(.item_id) +" for reaching the max level!";
    		}
    		
    		end;
    
    }

     

    Typo:

    getitem .19546, .1;

    To

    getitem .item_id, .amount;
    • Upvote 1
  3. 1 hour ago, Hossam said:
    
    -	script	hourly_reward_main	-1,{
    	
    	OnInit:
    		setarray .itemid,6379,522,12412,604,12221,16774,12103,12710,14296,14601,7929,12202,12203,12204,12205,12206,12207,7959;
    		setarray .amount,10,100,1,10,1,2,2,3,2,5,2,2,2,2,2,2,2,2;
    
    		.itemid_size = getarraysize( .itemid );
    		end;
    		
    	OnMinute00:
    		query_sql( "SELECT `account_id`,`name` FROM `char` WHERE `online` = 1 ORDER BY RAND() LIMIT 1",.@aid,.@name$ );
    		if ( .@aid ) {
    			.@i = rand( .itemid_size );
    			getitem .itemid[.@i],.amount[.@i],.@aid;
    			announce "Krizazone Server - Lucky Player ["+.@name$+"] has receive ["+.amount[.@i]+"x "+getitemname( .itemid[.@i] )+"]!!",bc_all;
    		}
    		end;
    }

    i need help here
    this script send to all player online and all marchents autotrade
    i want make it to send to all player online not marchents autotrade
    any help ?

    Hi please try this I'm not on my PC.

    -	script	hourly_reward_main	-1,{
    OnInit:
    	setarray .itemid,6379,522,12412,604,12221,16774,12103,12710,14296,14601,7929,12202,12203,12204,12205,12206,12207,7959;
    	setarray .amount,10,100,1,10,1,2,2,3,2,5,2,2,2,2,2,2,2,2;
    	.itemid_size = getarraysize( .itemid );
    	end;
    		
    OnMinute00:
    	.@size = query_sql( "SELECT `account_id`,`name` FROM `char` WHERE `online` = 1 ORDER BY RAND() LIMIT 1",.@aid,.@name$ );
    	for( .@i = 0; .@i < .@size; .@i++ ) {
    		if( checkvending( .@name$[.@i] ) || checkchatting( .@name$[.@i] ) ) end;
    	else if( .@aid )
    		.@i = rand( .itemid_size );
    		getitem .itemid[.@i],.amount[.@i],.@aid;
    		announce "Krizazone Server - Lucky Player ["+.@name$+"] has received "+.amount[.@i]+" x "+getitemname( .itemid[.@i] )+".",0;
    	}
    	end;
    }

    Let me know if it's working.

  4. 1 hour ago, Noctis said:

    Btw do you know the script that he say the guild name that Im in? like

    "mes "Hi! Your a Guild Member of the #guildname#."; (the guild name with color) @Kaze

    prontera.gat, 155, 182, 4	script	Guild Information	4_F_KAFRA1,{
    	.@n$ = "[ Guild Information ]";
    	.@id = getcharid(2);
    
    	if( .@id == 0 ) {
    		mes .@n$;
    		mes "Sorry, you are not in a guild.";
    		close;
    	}
    	if( strcharinfo(0) != getguildmaster(.@id) ) {
    		mes .@n$;
    		mes "Sorry, you don't own the guild you are in.";
    		close;
    	}
    	mes .@n$;
    	mes "Your the Guild Member of: ^00AA00"+ getguildname(.@id) +"^000000";
    	close;
    }

     

    • Upvote 1
  5. 36 minutes ago, Noctis said:

    Whats the script that if its a guild member he say

    mes "I see that ur a guild member";

    goto L_function

    if not

    mes "you dont have a guild";

    close;

    	if( !getcharid(2) ) {
    		mes "I'm sorry, but you are not in a Guild.";
    		close;
    	}
    	mes "Hi! Your a Guild Member.";
    	mes "How may i help you?";
    	next;
    
    	do your function..........

     

    • Upvote 1
  6. 24 minutes ago, Aaeria said:

    I'm new to scripting and trying to make a basic petinfo command. But I get error, can someone help me to right way? This what I put so far:

    
    -	script	atcmds	-1,{
    OnInit:
    	bindatcmd "petinfo",strnpcinfo(3)+"::OnAtcommand1";
    	end;
    
    OnAtcommand1:
    	if( getpetinfo(PETINFO_ID()) == null ) {
    	dispbottom "Sorry, you do not own a pet yet.";
    	break;
    	} else {
    	dispbottom "[Pet] "+getpetinfo(petinfo_id())+"";
    	end;
    	}
    }

    a79a52f10b66b1996df21d0392451547.png

     

    Try this.

    -	script	atcmds	-1,{
    OnInit:
    	bindatcmd "petinfo",strnpcinfo(3)+"::OnAtcommand";
    	end;
    
    OnAtcommand:
    	if( getpetinfo(PETINFO_NAME) == "null") {
    		dispbottom "Sorry, you do not own a pet yet.";
    		end;
    	} else {
    		dispbottom "=========== Information ===========";
    		dispbottom "ID: "+getpetinfo(PETINFO_ID)+"";
    		dispbottom "Block ID: "+getpetinfo(PETINFO_BLOCKID)+"";
    		dispbottom "Level: "+getpetinfo(PETINFO_LEVEL)+"";
    		dispbottom "Class: "+getpetinfo(PETINFO_CLASS)+"";
    		dispbottom "Name: "+getpetinfo(PETINFO_NAME)+"";
    		dispbottom "Hungry: "+getpetinfo(PETINFO_HUNGRY)+"";
    		dispbottom "Renamed: "+getpetinfo(PETINFO_RENAMED)+"";
    		end;
    	}
    }

     

    • Upvote 1
  7. 20 hours ago, Noctis said:

    I liked it, good job

    Thank you =)

     

    19 hours ago, Nyanko said:

    I liked the maps and the details you used. Good job ;D

    Oh yeah, even if the map is simple itself I'm trying to put detail as much as possible so that it won't look empty.

     

    19 hours ago, Najara said:

    Nice, Kaze! Well done, I like how you applied different levels of height and am def looking forward to see more from you. :) 

    Yeah, been doing maps a long time ago since eA I'm just lazy to make because it takes a lot of time and patience. and now your my inspiration <3

  8. On 12/17/2015 at 7:16 AM, Anacondaqq said:

    @Cydh

    I was found a lot of different bugs, and warnings inside this system.

    Some of bugs reported below i was manually fix.

     

    1. Imposible to compile because of missing #include defines under linux, at windows this mod you can compile without errors or problems
    2. I was review code, and i found for a lot of missing scopes, or wrong typo, (check examples below)
    3. I was found a lot of not used variable / structures (or there is a logic typo)
    4. Btw, i was make it work a little bit, but when you @ipblock or @ipban character -> he did't kicked from the game, you need manually kick him / her from the game to apply ban (after kick, he can't connect)
    5. A lot of problems with sql tables from the start.

     

    Suggestions

    1. Please Fix bugs with this system (there are a lot of them, and check & review your code, (because for now this application is very dangerous for production))
    2. Please add separate diff for code, and separate sql tables which we need to add to the game (with diff for ready tables, and with how tables must looks like (to make easy it to isntall)
    3. Test it on linux, you will find a lot of strange things with this system.

     

    THank you!

    If you don't mind? would you share the working copy you have? I mean the one you mentioned above?

  9. 41 minutes ago, melv0 said:

    bump

     

    Try this simple :D
    You can easily configure the items at OnInit:

    Item DB:

    // SQL Version: REPLACE INTO `item_db2` VALUES (46996,'RANDOM_BOX','Random Box',18,NULL,NULL,200,NULL,NULL,NULL,NULL,0xFFFFFFFF,7,2,NULL,NULL,NULL,NULL,NULL,'doevent \"F_Random_Box::OnBoxClick\";',NULL,NULL);
    // TXT Version: 46996,RANDOM_BOX,Random Box,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ doevent \"F_Random_Box::OnBoxClick\"; },{},{}

    Script:

    http://immortalsro.com/rAScripts/random_box.txt

    • Upvote 1
  10. 4 minutes ago, Aaeria said:

    b88b151f4d6bad3a0c73a0a2b7f0c73d.png

    Same error, :|

    Sorry I don't think I can, this is a paid script. I also notified Emistry of this topic

    I'm sorry, I cannot help you with this without the whole script that I can take a looked.
    does EXP_RESET_BASE is a functions or something?

  11. 25 minutes ago, Aaeria said:

    Still got the same error, weird ;|

    edit: Emistry is the creator of this script

    can you post the error pls?

    Try this:

    dispbottom "[EXP Reset System]: You have accumulated "+ F_InstertComma( #EXP_RESET_BASE ) +" / "+ F_InsertComma( #EXP_RESET_JOB) +" EXP: "+ epoch_time( .@gettimetick );

     

  12. 20 minutes ago, Aaeria said:

    b8dd45e783993fb0021b3ecd3ac7a173.png

    Not exactly sure what's up, I'm new to scripting

     

    I don't know what is epoch_time probably its Time2Str

    dispbottom "[EXP Reset System]: You have accumulated "+ F_InstertComma( #EXP_RESET_BASE ) +" / "+ F_InsertComma( #EXP_RESET_JOB) +" EXP. ("+ epoch_time( .@gettimetick) +")";

    Try this one.

  13. You can only do this by source code =) but u can write this via script but its hassle.

    Senario:

    Quote

    0 keil 0 er - no effect

    0 keil 1 er - 1 expert ring effect

    0 keil 2 er -  2 expert ring effect

    1 keil 0 er -  kiel card effect

    1 keil 1 er - 1 kiel card and expert ring effect

    1 keil 2 er - 1 kiel and 2 expert ring effect

    2 keil 0 er - 1 kiel card effect only

    2 keil 1 er -  effect is 1 kiel and 1 ER only

    2 keil 2 er -  work both 2 kiel and 2 ER

     

    Example:

    xxxx,....,{ if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30; },{},{}

    You can search this at the forum.

    References:

     

     

     

  14. On 6/17/2017 at 0:33 AM, celeron0134 said:

     

    prontera,155,155,5 shop tooldealer 811

    setarray .@items 501,502,503,504

    setarray .@amount 10,20,30,40

     .@maps prontera,izlude,morocc,aldebaran,alberta,payon,geffen

    Onbuyitem: Announce: "getcharname" has bought "getitemname" from the tool dealer on Prontera "get coordinates"

    @jumpnpc "tooldealer" rand(.@maps) random coordinates

    A Shop NPC that when a player buys an item after the transaction the NPC will jump on a random map with random coordinates

     
     

     

    Hi, please try this. :D

    prontera.gat, 155, 185, 4	script	Jumping Jack	757,{
    	setarray .@map_List$[0], "hugel", "yuno", "comodo", "xmas", "aldebaran", "izlude", "payon", "geffen", "morocc", "prontera";	
    
    	mes "[ Jumping Jack ]";
    	mes "Hello";
    	close2;
    	.@map$ = .@map_List$[ rand( getarraysize( .@map_List$ )) ];
    	do {
    		.@x = rand(1,400);
    		.@y = rand(1,400);
    	} while( !checkcell(.@map$, .@x, .@y, cell_chkpass ) );
    	unitwarp getnpcid(0), .@map$, .@x, .@y;
    	end;
    }

     

     

    • Upvote 1
  15. Might this will help you as a script based.

    Credits: AnnieRURU

    prontera,156,188,5	script	kjdfhkshfs	100,{
    	getpartymember getcharid(1), 1;
    	getpartymember getcharid(1), 2;
    	.@origin = getcharid(3);
    	for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
    		if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
    			attachrid $@partymemberaid[.@i];
    			.@online++;
    			.@compare_job$ = .@compare_job$ +"#"+ class +"#";
    		}
    	}
    	attachrid .@origin;
    //	dispbottom .@online + .@compare_job$;
    	if ( .@online < 5 )
    		mes "your party needs at least 5 party member online";
    	else if ( !compare( .@compare_job$, "#"+ Job_Paladin +"#" ) )
    		mes "your party needs a Paladin in your party";
    	else if ( !compare( .@compare_job$, "#"+ Job_High_Priest +"#" ) )
    		mes "your party needs a High Priest in your party";
    	else if ( countstr( .@compare_job$, "#"+ Job_High_Wizard +"#" ) + countstr( .@compare_job$, "#"+ Job_Assassin_Cross +"#" ) + countstr( .@compare_job$, "#"+ Job_Ninja +"#" ) + countstr( .@compare_job$, "#"+ Job_Sniper +"#" ) + countstr( .@compare_job$, "#"+ Job_Lord_Knight +"#" ) < 3 )
    		mes "your party needs to have at least 3 Damage Dealer classes in your party";
    	else
    		mes "you are free the go";
    	close;
    }

     

×
×
  • Create New...