Jump to content

Question

Posted

-	script	kill_event	-1,{
OnNPCKillEvent:
	getmapxy.@map$,.@x,.@y,0;
	// symbol of brave warrior
	if(getmonsterinfo(killedrid,MOB_MVPEXP) && .@map$!= "pvp_n_1-5" && .@map$!= "pvp_n_2-5" && .@map$!= "pvp_n_3-5" && .@map$!= "pvp_n_4-5" && .@map$!= "pvp_n_5-5") {
		set .@rand, rand(1,200);
		if(.@rand <= 40) {
			announce "Player " +strcharinfo(0) +" got [Event Ticket]!",0,0xD462FF;
			getitem 7711,1;
		}
		if(.@rand <= 5) {
			query_sql "SELECT ID FROM item_db a WHERE a.`id` BETWEEN 19100 AND 19115 ORDER BY RAND() LIMIT 1",.@item_id;
			getitem .@item_id,1;
			announce "Player " +strcharinfo(0) +" got "+getitemname(.@item_id)+"!",0,0xD462FF;
	}
	end;
}
}

Requesting will read the import > item_db

not the sql_item_db

        if(.@rand <= 5) {

            query_sql "SELECT ID FROM item_db a WHERE a.`id` BETWEEN 19100 AND 19115 ORDER BY RAND() LIMIT 1",.@item_id;

            getitem .@item_id,1;

cause my costume is in import item_db /no1

bump

bump

1 answer to this question

Recommended Posts

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...