Hello everyone, well my problem is i can't attach player in this line:
if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) {
I've tried so many ways but doesn't work.
Thanks.
//=================== Announcer =====================
- script Announcerm -1,{
OnMinute35:
killmonster "mine_evt.gat","All";
announce "xxxxxxxxxx.",bc_all,0xAA42F9;
sleep 4000;
announce "xxxxxxxxxxxx.",bc_all,0xAA42F9;
enablenpc "Shadow Miner";
sleep 4000;
announce "xxxxxxxxxx.",bc_all,0xAA42F9;
sleep 4000;
announce "xxxxxxxxx.",bc_all,0xAA42F9;
sleep 60000;
announce "xxxxxxxxxx.",bc_all,0xAA42F9;
disablenpc "Shadow Miner";
if(getmapusers("mine_evt") == 0)
{
disablenpc "Minery";
disablenpc "crystaltimer";
announce "xxxxxxxxxxxxx.",bc_all,0xAA42F9;
end;
}
donpcevent "Minery::OnEncen";
end;
OnInit:
disablenpc "Minery";
disablenpc "Shadow Miner";
}
//============================= Warper =====================================
prontera,147,163,6 script Shadow Miner 1169,{
mes "[^AA42F9Fiebre del Mineral^000000]";
mes "xxxxxxxxxxx:";
menu "XXX.",L_gomine,
"YYYY.",L_nogo;
L_gomine:
mes "xxxxxxxxx.";
specialeffect2 35;
sleep2 100;
specialeffect2 6;
sleep2 1200;
specialeffect2 71;
specialeffect2 389;
specialeffect2 36;
specialeffect2 389;
sleep2 825;
warp "mine_evt",98,45;
close;
L_nogo:
mes "xxxxxxxxxxx.";
close;
}
//====================================================================
- script Minery -1,{
OnEncen:
mapannounce "mine_evt","Shadow Miner: xxxxxxxx.",bc_all,0xAA42F9;
sleep 6000;
mapannounce "mine_evt","Shadow Miner: xxxxxxx.",bc_all,0xAA42F9;
sleep 6000;
mapannounce "mine_evt","Shadow Miner: xxxxxxx.",bc_all,0xAA42F9;
sleep 10000;
mapannounce "mine_evt","Shadow Miner: xxxxxxx.",bc_all,0xAA42F9;
sleep 10000;
mapannounce "mine_evt","Shadow Miner: xxxxxxx.",bc_all,0xAA42F9;
sleep 6000;
goto L_Comt;
end;
L_Comt:
if(getmapusers("mine_evt") == 0) goto L_Noth;
if(getmapusers("mine_evt") >= 1) {
mapannounce "mine_evt","Shadow Miner: xxxxx",bc_all,0xAA42F9;
sleep 2000;
mapannounce "mine_evt","Shadow Miner: 5",bc_all,0xAA42F9;
sleep 1000;
mapannounce "mine_evt","Shadow Miner: 4",bc_all,0xAA42F9;
sleep 1000;
mapannounce "mine_evt","Shadow Miner: 3",bc_all,0xAA42F9;
sleep 1000;
mapannounce "mine_evt","Shadow Miner: 2",bc_all,0xAA42F9;
sleep 1000;
mapannounce "mine_evt","Shadow Miner: 1",bc_all,0xAA42F9;
sleep 1000;
mapannounce "mine_evt","Shadow Miner: Go!.",bc_all,0xAA42F9;
playBGMall "mining";
donpcevent "crystalsummoner::OnSumCr";
donpcevent "crystaltimer::OnTierTm";
end;
}
L_Noth:
disablenpc "Minery";
killmonster "mine_evt.gat","All";
end;
}
//================= NPC TIMER ======================
- script crystaltimer -1,{
OnTierTm:
initnpctimer;
end;
OnTimer1000:
if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) {
end;
} else {
message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment.";
sleep2 3000;
warp "prontera.gat",155,184;
end;
}
OnTimer10000:
if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) {
end;
} else {
message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment.";
sleep2 3000;
warp "prontera.gat",155,184;
end;
}
OnTimer20000:
if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) {
end;
} else {
message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment.";
sleep2 3000;
warp "prontera.gat",155,184;
end;
}
OnTimer30000:
if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) {
end;
} else {
message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment.";
sleep2 3000;
warp "prontera.gat",155,184;
end;
}
OnTimer40000:
if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) {
end;
} else {
message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment.";
sleep2 3000;
warp "prontera.gat",155,184;
end;
}
OnTimer50000:
if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) {
end;
} else {
message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment.";
sleep2 3000;
warp "prontera.gat",155,184;
end;
}
OnTimer60000:
if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) {
end;
} else {
message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment.";
sleep2 3000;
warp "prontera.gat",155,184;
end;
}
OnTimer70000:
if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) {
end;
} else {
message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment.";
sleep2 3000;
warp "prontera.gat",155,184;
end;
}
OnTimer80000:
mapannounce "Shadow Miner: Se acabo jejeje, los devolvere a Prontera",bc_all,0xAA42F9;
killmonster "mine_evt.gat","All";
end;
OnTimer83500:
mapwarp "mine_evt.gat","prontera.gat",155,184;
disablenpc "Minery";
disablenpc "Shadow Miner";
stopnpctimer;
setnpctimer 0;
disablenpc "crystaltimer";
end;
}
//================= Crystal Respawn ======================
- script crystalsummoner -1,{
OnSumCr:
if(getmapusers("mine_evt") == 0) goto L_2Nada;
monster "mine_evt.gat",0,0,"Gold Node",3512,80,"crystalbrek::OnCrystalKilled";
monster "mine_evt.gat",0,0,"Diamantinum Node",3511,5,"crystalbrek2::OnCrystalKilled";end;
L_2Nada:
disablenpc "Minery";
killmonster "mine_evt.gat","All";
end;
}
//================== Crystal 1 ======================
- script crystalbrek -1,{
OnCrystalKilled:
getitem 969,10;
end;
}
//================== Crystal 2 ======================
- script crystalbrek2 -1,{
OnCrystalKilled:
getitem 33005,1;
end;
}
//================= Mapflags =======================
mine_evt mapflag nowarp
mine_evt mapflag nowarpto
mine_evt mapflag noteleport
mine_evt mapflag nosave
mine_evt mapflag nomemo
mine_evt mapflag nobranch
mine_evt mapflag noloot
mine_evt mapflag noskill
mine_evt mapflag nopenalty
mine_evt mapflag noreturn
mine_evt mapflag pvp off
Question
DelghLay
Hello everyone, well my problem is i can't attach player in this line:
if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) {
I've tried so many ways but doesn't work.
Thanks.
//=================== Announcer ===================== - script Announcerm -1,{ OnMinute35: killmonster "mine_evt.gat","All"; announce "xxxxxxxxxx.",bc_all,0xAA42F9; sleep 4000; announce "xxxxxxxxxxxx.",bc_all,0xAA42F9; enablenpc "Shadow Miner"; sleep 4000; announce "xxxxxxxxxx.",bc_all,0xAA42F9; sleep 4000; announce "xxxxxxxxx.",bc_all,0xAA42F9; sleep 60000; announce "xxxxxxxxxx.",bc_all,0xAA42F9; disablenpc "Shadow Miner"; if(getmapusers("mine_evt") == 0) { disablenpc "Minery"; disablenpc "crystaltimer"; announce "xxxxxxxxxxxxx.",bc_all,0xAA42F9; end; } donpcevent "Minery::OnEncen"; end; OnInit: disablenpc "Minery"; disablenpc "Shadow Miner"; } //============================= Warper ===================================== prontera,147,163,6 script Shadow Miner 1169,{ mes "[^AA42F9Fiebre del Mineral^000000]"; mes "xxxxxxxxxxx:"; menu "XXX.",L_gomine, "YYYY.",L_nogo; L_gomine: mes "xxxxxxxxx."; specialeffect2 35; sleep2 100; specialeffect2 6; sleep2 1200; specialeffect2 71; specialeffect2 389; specialeffect2 36; specialeffect2 389; sleep2 825; warp "mine_evt",98,45; close; L_nogo: mes "xxxxxxxxxxx."; close; } //==================================================================== - script Minery -1,{ OnEncen: mapannounce "mine_evt","Shadow Miner: xxxxxxxx.",bc_all,0xAA42F9; sleep 6000; mapannounce "mine_evt","Shadow Miner: xxxxxxx.",bc_all,0xAA42F9; sleep 6000; mapannounce "mine_evt","Shadow Miner: xxxxxxx.",bc_all,0xAA42F9; sleep 10000; mapannounce "mine_evt","Shadow Miner: xxxxxxx.",bc_all,0xAA42F9; sleep 10000; mapannounce "mine_evt","Shadow Miner: xxxxxxx.",bc_all,0xAA42F9; sleep 6000; goto L_Comt; end; L_Comt: if(getmapusers("mine_evt") == 0) goto L_Noth; if(getmapusers("mine_evt") >= 1) { mapannounce "mine_evt","Shadow Miner: xxxxx",bc_all,0xAA42F9; sleep 2000; mapannounce "mine_evt","Shadow Miner: 5",bc_all,0xAA42F9; sleep 1000; mapannounce "mine_evt","Shadow Miner: 4",bc_all,0xAA42F9; sleep 1000; mapannounce "mine_evt","Shadow Miner: 3",bc_all,0xAA42F9; sleep 1000; mapannounce "mine_evt","Shadow Miner: 2",bc_all,0xAA42F9; sleep 1000; mapannounce "mine_evt","Shadow Miner: 1",bc_all,0xAA42F9; sleep 1000; mapannounce "mine_evt","Shadow Miner: Go!.",bc_all,0xAA42F9; playBGMall "mining"; donpcevent "crystalsummoner::OnSumCr"; donpcevent "crystaltimer::OnTierTm"; end; } L_Noth: disablenpc "Minery"; killmonster "mine_evt.gat","All"; end; } //================= NPC TIMER ====================== - script crystaltimer -1,{ OnTierTm: initnpctimer; end; OnTimer1000: if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) { end; } else { message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment."; sleep2 3000; warp "prontera.gat",155,184; end; } OnTimer10000: if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) { end; } else { message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment."; sleep2 3000; warp "prontera.gat",155,184; end; } OnTimer20000: if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) { end; } else { message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment."; sleep2 3000; warp "prontera.gat",155,184; end; } OnTimer30000: if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) { end; } else { message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment."; sleep2 3000; warp "prontera.gat",155,184; end; } OnTimer40000: if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) { end; } else { message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment."; sleep2 3000; warp "prontera.gat",155,184; end; } OnTimer50000: if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) { end; } else { message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment."; sleep2 3000; warp "prontera.gat",155,184; end; } OnTimer60000: if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) { end; } else { message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment."; sleep2 3000; warp "prontera.gat",155,184; end; } OnTimer70000: if (strcharinfo(3) == "mine_evt" && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) { end; } else { message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment."; sleep2 3000; warp "prontera.gat",155,184; end; } OnTimer80000: mapannounce "Shadow Miner: Se acabo jejeje, los devolvere a Prontera",bc_all,0xAA42F9; killmonster "mine_evt.gat","All"; end; OnTimer83500: mapwarp "mine_evt.gat","prontera.gat",155,184; disablenpc "Minery"; disablenpc "Shadow Miner"; stopnpctimer; setnpctimer 0; disablenpc "crystaltimer"; end; } //================= Crystal Respawn ====================== - script crystalsummoner -1,{ OnSumCr: if(getmapusers("mine_evt") == 0) goto L_2Nada; monster "mine_evt.gat",0,0,"Gold Node",3512,80,"crystalbrek::OnCrystalKilled"; monster "mine_evt.gat",0,0,"Diamantinum Node",3511,5,"crystalbrek2::OnCrystalKilled";end; L_2Nada: disablenpc "Minery"; killmonster "mine_evt.gat","All"; end; } //================== Crystal 1 ====================== - script crystalbrek -1,{ OnCrystalKilled: getitem 969,10; end; } //================== Crystal 2 ====================== - script crystalbrek2 -1,{ OnCrystalKilled: getitem 33005,1; end; } //================= Mapflags ======================= mine_evt mapflag nowarp mine_evt mapflag nowarpto mine_evt mapflag noteleport mine_evt mapflag nosave mine_evt mapflag nomemo mine_evt mapflag nobranch mine_evt mapflag noloot mine_evt mapflag noskill mine_evt mapflag nopenalty mine_evt mapflag noreturn mine_evt mapflag pvp off
Link to comment
Share on other sites
12 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.