iubantot Posted March 6, 2018 Posted March 6, 2018 OnNPCKillEvent: if (killedrid == 1751 && rand(0,1000) > 950) { // Valkyrie Randgris getmapxy(.@map$,.@x,.@y,UNITTYPE_PC); setarray .@OptID[0],RDMOPT_ATTR_TOLERACE_NOTHING,RDMOPT_RACE_TOLERACE_HUMAN; setarray .@OptVal[0],10,5; setarray .@OptParam[0],0; makeitem3 2115,1,.@map$,.@x,.@y,0,0,0,0,0,0,0,.@OptID,.@OptVal,.@OptParam; } end; So ive seen this script on the docs, but i want to make it drop beside the location of the mob. how do i make it like that? Quote
0 pajodex Posted March 6, 2018 Posted March 6, 2018 (edited) 1 hour ago, iubantot said: OnNPCKillEvent: if (killedrid == 1751 && rand(0,1000) > 950) { // Valkyrie Randgris getmapxy(.@map$,.@x,.@y,UNITTYPE_PC); setarray .@OptID[0],RDMOPT_ATTR_TOLERACE_NOTHING,RDMOPT_RACE_TOLERACE_HUMAN; setarray .@OptVal[0],10,5; setarray .@OptParam[0],0; makeitem3 2115,1,.@map$,.@x,.@y,0,0,0,0,0,0,0,.@OptID,.@OptVal,.@OptParam; } end; So ive seen this script on the docs, but i want to make it drop beside the location of the mob. how do i make it like that? if (killedrid == 1751 && rand(0,1000) > 950 && strnpcinfo(4) == "map here") { // Valkyrie Randgris or this if (killedrid == 1751 && rand(0,1000) > 950 && strcharinfo(3) == "map here") { // Valkyrie Randgris 1st - not tested if working 2nd - check if player who killed the mob is at the map Edited March 6, 2018 by pajodex Quote
0 iubantot Posted March 6, 2018 Author Posted March 6, 2018 1 minute ago, pajodex said: if (killedrid == 1751 && rand(0,1000) > 950 && strnpcinfo(4) == "map here") { // Valkyrie Randgris not tested you did not get the question Quote
0 pajodex Posted March 6, 2018 Posted March 6, 2018 1 minute ago, iubantot said: you did not get the question sorry if I didn't anyways, you can ignore it if it is not useful Quote
Question
iubantot
So ive seen this script on the docs, but i want to make it drop beside the location of the mob. how do i make it like that?
3 answers 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.