Skip to content

Instantly share code, notes, and snippets.

@secretdataz
Created March 3, 2016 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save secretdataz/1a721d81e240c83abcc5 to your computer and use it in GitHub Desktop.
Save secretdataz/1a721d81e240c83abcc5 to your computer and use it in GitHub Desktop.
- script cofresdeltesoro -1,0,5{
end;
OnNPCKillEvent:
if (killedrid == 1732) {
set .@var, rand(1,10); // Use scope variable instead when dealing with "use once and forget" variable like this. [secretdataz]
switch (.@var) {
case 1:
getitem 909,1;
break;
case 2:
getitem 7126,1;
break;
case 3:
getitem 7300,1;
break;
case 4:
getitem 909,1;
break;
case 5:
getitem 2610,1;
break;
case 6:
getitem 728,1;
break;
case 7:
getitem 909,1;
break;
case 8:
getitem 909,1;
break;
case 9:
getitem 7126,1;
break;
case 10:
atcommand "@monster 1474";
break;
}
} // End if
end;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment