Jump to content

Patskie

Community Contributors
  • Content Count

    366
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by Patskie


  1. Try : 

     

    prontera,150,150,0	script	Sample	123,{	OnNPCKillEvent:		if ( getmonsterinfo(killedrid,19) == RC_Dragon || getmonsterinfo(killedrid,19) == RC_Demon && quest ) {			if ( getd( "@" + getmonsterinfo(killedrid, 19) + "_race" ) % 50 == 0 ) {				quest = 0;				getitem 7227, 50;			}			setd( "@" + getmonsterinfo(killedrid,19) + "_race" ), getd( "@" + getmonsterinfo(killedrid,19) + "_race" ) + 1;		}		end;			mes "Do the quest?";	next;	if (select("Yes:No")-1) close;	mes "Done! Go kill some monsters!";	quest = 1;	close;}

  2.  

     

     

    *announce "<text>",<flag>{,<fontColor>{,<fontType>{,<fontSize>{,<fontAlign>{,<fontY>}}}}};This command will broadcast a message to all or most players, similar to@kami/@kamib GM commands.	announce "This will be shown to everyone at all in yellow.",0;The region the broadcast is heard in (target), source of the broadcast andthe color the message will come up as is determined by the flags.The flag values are coded as constants in db/const.txt to make them easierto use.Target flags:- bc_all:	Broadcast message is sent server-wide (default).- bc_map:	Message is sent to everyone in the same map as the source of			the broadcast (see below).- bc_area:	Message is sent to players in the vicinity of the source.- bc_self:	Message is sent only to current player.You cannot	use more than one target flag.Source flags:- bc_pc:	Broadcast source is the attached player (default).- bc_npc:	Broadcast source is the NPC, not the player attached to the			script (useful when a player is not attached or the message			should be sent to those nearby the NPC).You cannot use more than one source flag.Special flags:- bc_yellow:Broadcast will be displayed in yellow color (default).- bc_blue:	Broadcast will be displayed in blue color.- bc_woe:	Indicates that this broadcast is 'WoE Information' that can			be disabled client-side.Due to the way client handles broadcasts, it is impossible to set bothbc_blue and bc_woe.The optional parameters allow usage of broadcasts in custom colors,font-weights, sizes etc. If any of the optional parameters is used,special flag is ignored. Optional parameters may not work well (or at all)depending on a game client used.The color parameter is a single number which can be in hexadecimalnotation.For example:	announce "This will be shown to everyone at all in green.",bc_all,0x00FF00;Will display a global announce in green. The color format is in RGB(0xRRGGBB).In official scripts only two font-weights (types) are used:- normal (FW_NORMAL = 400, default),- bold (FW_BOLD = 700).Default font size is 12.Using this for private messages to players is probably not that good anidea, but it can be used instead in NPCs to "preview" an announce.	// This will be a private message to the player using the NPC that	// made the announcement	announce "This is my message just for you",bc_blue|bc_self;	// This will be shown on everyones screen that is in sight of the NPC.	announce "This is my message just for you people here",bc_npc|bc_area;

     

     


  3. -	script	Sample	-1,{	OnMinute00:		query_sql "SELECT `account_id` FROM `char` WHERE `last_map` = 'prontera' ORDER BY RAND() LIMIT 1",.@aid;		if ( attachrid( .@aid ) )			warp "prontera",150,150;		end;}	

     

     

    Randomly choose a character on map prontera. Attach their account id and then do the warp.


  4. prontera,150,150,0	script	Sample	100,{	mes strnpcinfo(1);	mes "Heal heal heal ~";	specialeffect2 EF_HEAL2; percentheal 100, 100;	if ( countitem( 7227 ) ) {		specialeffect2 EF_INCAGILITY; sc_start SC_INC_AGI,240000,10;		specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;	}	close;}
×
×
  • Create New...

Important Information

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