-
Posts
764 -
Joined
-
Last visited
-
Days Won
4
Community Answers
-
Kenpachi's post in helpBattleground restricted items( BG Supplier) was marked as the answer
/db/pre-re/item_noequip.txt or /db/re/item_noequip.txt.
<item_id>,7
This restricts the use of that item in normal/PVP/GVG maps but not in battleground maps.
-
Kenpachi's post in HELP in @item npc script was marked as the answer
Therefor you can use the getiteminfo command.
if(getiteminfo(.@itemnum, 0) == -1) // item does not exist -
Kenpachi's post in [ ASK ] Over Stats Scripts was marked as the answer
Dunno what your problem may be, but at least there is a missing end; and because you're using mes you have to finalize the dialog with close;.
- script AntiCheat -1,{ OnPCLoginEvent: if(getgmlevel() > 50) //GM Excemption end; if (readparam(bStr) > 99 || readparam(bAgi) > 99 || readparam(bVit) > 99 || readparam(bInt) > 99 || readparam(bDex) > 99 || readparam(bLuk) > 99){ mes "[^FF0000Anti Cheat System^000000]"; mes "We have detected you having stats over the limit. You will be disconnected shortly. If this is an error please contact the Game Master immediately."; sleep2 8000; // 8 Seconds delay atcommand "@block "+strcharinfo(0); announce strcharinfo(0) + " , You have been banned for having edited stats. Thank you for playing Medan Ragnarok Online.",0; close; } end; } -
Kenpachi's post in Duplicating items in My SQL was marked as the answer
INSERT INTO `item_db2` SELECT * FROM `item_db` WHERE `type` = 4 OR `type` = 5; But I don't understand what you want to rename...
-
Kenpachi's post in helpBattleground restricted items( BG Supplier) was marked as the answer
/db/pre-re/item_noequip.txt or /db/re/item_noequip.txt.
<item_id>,7
This restricts the use of that item in normal/PVP/GVG maps but not in battleground maps.
-
Kenpachi's post in help about RFYl event. was marked as the answer
For the question: Use getgroupid() instead of getgmlevel().
For the error:
replace
if (!.Status) mes .@name$; mes "My master seems to be slacking.."; else { with
if (!.Status) { mes .@name$; mes "My master seems to be slacking.."; } else {
-
Kenpachi's post in See who kills you in WoE was marked as the answer
Nobody said something about mapannounce.
My idea:
- script WoEKillMessage -1,{ OnPCKillEvent: if((AgitCheck() && CallSub("IsWoE1Map", StrCharInfo(3))) || (AgitCheck2() && CallSub("IsWoE2Map", StrCharInfo(3)))) { DispBottom("You killed " + RID2Name(killedrid) + "."); if(AttachRID(killedrid)) DispBottom("You were killed by " + RID2Name(killerrid) + "."); } End(); IsWoE1Map: for(Set(.@i, GetArraySize(.WoE1Maps$) - 1); .@i >= 0; Set(.@i, .@i - 1)) if(.WoE1Maps$[.@i] == GetArg(0)) return 1; return 0; IsWoE2Map: for(Set(.@i, GetArraySize(.WoE2Maps$) - 1); .@i >= 0; Set(.@i, .@i - 1)) if(.WoE2Maps$[.@i] == GetArg(0)) return 1; return 0; OnInit: SetArray(.WoE1Maps$[0], "aldeg_cas01", "aldeg_cas02", "aldeg_cas03", "aldeg_cas04", "aldeg_cas05" , "gefg_cas01", "gefg_cas02", "gefg_cas03", "gefg_cas04", "gefg_cas05" , "payg_cas01", "payg_cas02", "payg_cas03", "payg_cas04", "payg_cas05" , "prtg_cas01", "prtg_cas02", "prtg_cas03", "prtg_cas04", "prtg_cas05"); SetArray(.WoE2Maps$[0], "arug_cas01", "arug_cas02", "arug_cas03", "arug_cas04", "arug_cas05" , "schg_cas01", "schg_cas02", "schg_cas03", "schg_cas04", "schg_cas05"); End(); }
@Z3RO:
Why GetMapXY() instead of StrCharInfo(3)? oO
-
Kenpachi's post in [Request]GM Login was marked as the answer
I'm at work and can't test it, but this should work the way you want:
- script GMLogin -1,{
OnPCLoginEvent:
if(GetGMLevel() >= .GMLevel)
{
Warp("map", x, y);
AtCommand("@speed 0");
Announce("GM" + StrCharInfo(0) + " has logged in.", bc_all, .AnnounceColor);
}
End();
OnInit:
Set(.GMLevel, 80);
Set(.AnnounceColor, 0x0000FF);
End();
}
[/codeBOX]
Just edit the two variables in the OnInit and the map name and coords in [i]Warp()[/i].
//EDIT: Not fast enough....