Jump to content
  • 0

lucky pick event


EL Dragon

Question


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

get price no GM's bzw. pass over all gm's from group lvl 2

burningtown,60,113,2	script	Who's Online Event	99,{

if (getgroupid() == 99) goto Event_Menu;
mes "[Who's Online Event]";
mes "Only GM's are allowed to use this NPC.";
close;

Event_Menu:
	set .@invokeid,getcharid(3);
	mes "[Who's Online Event]";
	mes "Enable event?";
	menu "Yes",-,"No",Event_End;
	
	while(1){
	query_sql "select account_id from `char` where online = 1 order by rand() limit 1", .@aid;
	attachrid .@aid;
	if( CheckVending() ){
		DetachRID();
		continue;
	}
	announce strcharinfo(0) +" won 5 Cash in Who's Online Event", 0,0x00FF00;
	set #CASHPOINTS,#CASHPOINTS+5;
	dispbottom "You got 5 cash point";
	break;
	}
	attachrid(.@invokeID);
	close;

Event_End:
close;
}
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  


if( CheckVending() || getgroupid() >= 2 ){

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  54
  • Reputation:   1
  • Joined:  08/28/14
  • Last Seen:  

how to exchange prize from cashpoints to pods?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

how to exchange prize from cashpoints to pods?

 

change

set #CASHPOINTS,#CASHPOINTS+5;

to

getitem 7227,1;
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...