Jump to content
  • 0

Mvpkill


DemonChuck

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  10/14/12
  • Last Seen:  

-	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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


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

why not just execute all your sql query into the item_db table ??

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...