Yasunari Ishibashi Posted July 3, 2012 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 157 Reputation: 2 Joined: 01/06/12 Last Seen: August 25, 2014 Share Posted July 3, 2012 Destroy emperium when WoE will take place automatically earn reward & Gift is valid while WoE lasts. This gift can anyone destroy emperium if I wanted TCG Card (7227) as a reward. if anyone can make a script do I mean? Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 3, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted July 3, 2012 - script Sample -1,{ OnNPCKillEvent: if( killedrid == 1288 && agitcheck() ) getitem 7227,1; end; } Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 3, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted July 3, 2012 Or, to save (significant) resources, add "getitem" directly to the Emperium kill event in the guild files (/guild/ and /guild2/). Quote Link to comment Share on other sites More sharing options...
Yasunari Ishibashi Posted November 28, 2012 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 157 Reputation: 2 Joined: 01/06/12 Last Seen: August 25, 2014 Author Share Posted November 28, 2012 - script Sample -1,{ OnNPCKillEvent: getmapxy(.@map$,.@x,.@y,0); if(.@map$=="aldeg_cas01" && killedrid == 1288 && (gettime(4) == 3) && gettime(3) == 19 ) { getitem 7227,1; end; } } please fix the script above Quote Link to comment Share on other sites More sharing options...
Joseph Posted November 29, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted November 29, 2012 Like what Euphy said, adding getitem after these lines are more resource friendly. https://rathena.svn....d/agit_main.txt OnAgitBreak: https://rathena.svn....git_main_se.txt OnStartArena: 1 Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted November 29, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted November 29, 2012 (edited) its not about resource friendly, emistry's script doesn't even work because our emperium has event labels monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak"; "Agit#arug_cas01::OnAgitBreak" is the event label http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1260 the purpose of OnNPCKillEvent is meant to be used in quest script and monsters with event labels is meant to be used in event script both of them shouldn't be mix together for example, in a poring event, a lot of porings is spawned, if OnNPCKillEvent allows to trigger for it, players might abused the system and gets the quest done instantly but because of event script, it has event labels, players will not abused the system to get it done from events but yeah, just add getitem under OnAgitBreak: and OnStartArena: rep up Edited November 29, 2012 by AnnieRuru Quote Link to comment Share on other sites More sharing options...
Yasunari Ishibashi Posted November 30, 2012 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 157 Reputation: 2 Joined: 01/06/12 Last Seen: August 25, 2014 Author Share Posted November 30, 2012 (edited) // The Emperium has been broken. OnAgitBreak: getitem 7227,1; set .@GID,getcharid(2); // Show and log error if an unguilded player breaks the Emperium. (Should NEVER happen) if (.@GID <= 0) { set .@notice$,"Character "+strcharinfo(0)+" ("+getcharid(0)+") broke the Emperium in Castle: "+strnpcinfo(2)+" while guildless. No data will be saved and Emperium respawned."; logmes .@notice$; debugmes .@notice$; donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena"; end; } OnStartArena: getitem 7227,1; // OnAgitStart will fall through and spawn the Emperium. if (strnpcinfo(2) == "aldeg_cas01") { setarray .@emproom[0],216,23; } else if (strnpcinfo(2) == "aldeg_cas02") { setarray .@emproom[0],213,23; } else if (strnpcinfo(2) == "aldeg_cas03") { setarray .@emproom[0],205,31; } else if (strnpcinfo(2) == "aldeg_cas04") { setarray .@emproom[0],36,217; } else if (strnpcinfo(2) == "aldeg_cas05") { setarray .@emproom[0],27,101; } else if (strnpcinfo(2) == "gefg_cas01") { setarray .@emproom[0],197,181; } else if (strnpcinfo(2) == "gefg_cas02") { setarray .@emproom[0],176,178; } else if (strnpcinfo(2) == "gefg_cas03") { setarray .@emproom[0],244,166; } else if (strnpcinfo(2) == "gefg_cas04") { setarray .@emproom[0],174,177; } else if (strnpcinfo(2) == "gefg_cas05") { setarray .@emproom[0],194,184; } else if (strnpcinfo(2) == "payg_cas01") { setarray .@emproom[0],139,139; } else if (strnpcinfo(2) == "payg_cas02") { setarray .@emproom[0],38,25; } else if (strnpcinfo(2) == "payg_cas03") { setarray .@emproom[0],268,264; } else if (strnpcinfo(2) == "payg_cas04") { setarray .@emproom[0],270,28; } else if (strnpcinfo(2) == "payg_cas05") { setarray .@emproom[0],30,30; } else if (strnpcinfo(2) == "prtg_cas01") { setarray .@emproom[0],197,197; } else if (strnpcinfo(2) == "prtg_cas02") { setarray .@emproom[0],157,174; } else if (strnpcinfo(2) == "prtg_cas03") { setarray .@emproom[0],16,220; } else if (strnpcinfo(2) == "prtg_cas04") { setarray .@emproom[0],291,14; } else if (strnpcinfo(2) == "prtg_cas05") { setarray .@emproom[0],266,266; } like this? Edited November 30, 2012 by Yasunari Ishibashi 1 Quote Link to comment Share on other sites More sharing options...
Joseph Posted November 30, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted November 30, 2012 Yes. @AnnieRuru Didn't aware of that. The first impression after seeing OnNPCKillEvent which made me think that is not so resource friendly. Quote Link to comment Share on other sites More sharing options...
Question
Yasunari Ishibashi
Destroy emperium when WoE will take place automatically earn reward & Gift is valid while WoE lasts.
This gift can anyone destroy emperium if I wanted TCG Card (7227) as a reward.
if anyone can make a script do I mean?
Link to comment
Share on other sites
7 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.