leloush
-
Content Count
269 -
Joined
-
Last visited
-
Days Won
1
Reputation Activity
-
leloush reacted to jaBote in PK in a specific location x y
@leloush: I don't remember any other way of doing that different to @killable, so please tell me if you can know and test that (just replace the atcommand sentences with their appropriate one). Problem with it is that you can be hit from people outside of the square.
@karazu: for making it work, just replace all parameters on the script with valid values.
NPC_MAP for a valid map name; X and Y for valid x,y coordinates inside the map; X_EVENT and Y_EVENT for valid trigger area values.
-
leloush reacted to jaBote in PK in a specific location x y
Try this one.
NOTES:
You'll possibly NEED to shift+click people in order to hit them, there's no other way that I know for doing this. Maybe a massive duel inside the square? Obviously, usage of the @killable status in your script means your users won't be able to use it for themselves in any normal situation. The parameters are listed there in UPPERCASE LETTERS. You should change them throughout all the script in order to make the script to work and to be parsed correctly. Script is untested, however it doesn't yield any parse errors provided you follow last note.
NPC_MAP,X,Y script killable -1,X_EVENT,Y_EVENT,{OnTouch: if (!@killable) { @killable = 1; // Variable for keeping track of the status atcommand "@killable"; // Don't remember if it needed a parameter, I think it doesn't addtimer 1000, strnpcinfo(3)+"OnKillable"; // Will check after a second } end;OnKillable: getmapxy(.@map$, .@x, .@y, 0); if ((.@map$ != NPC_MAP || // Outside of the map .@x < X - X_EVENT || .@x < X + X_EVENT || // Out of the area of effect in X side .@y < Y - Y_EVENT || .@y < Y + Y_EVENT)) { // Out of the area of effect in Y side @killable = 0; atcommand "@killable"; // Don't remember if it needed a parameter, I think it doesn't } else addtimercount 1000, strnpcinfo(3)+"OnKillable"; // Will check again after a second until player goes out of the square end;}
Wish you a happy new year!
-
leloush reacted to Olrox in [Solved]Browedit
Look for:
conf/mapflag/night.txt
and add your custom map there to enable the night effect with @night
-
leloush reacted to GM.PiXeL in [SOLVED]disable certain skill
yes, this is possible.
go to db/re(pre-re)/map_zone_db.conf
search for : name: "Towns"
under it you will see : disabled_skills: {
add storm gust in there.
-
leloush reacted to Angelmelody in about mining success chance
setarray .mineral[0], 25106, 1011, 984, 985; // Phracon, Emveretarcon, Oridecon, Elunium
// Success rate: (x / y)% chance setarray .success[0], 1, 5, // 1/5 (20%) -->25106 1, 2, // 1/2 (50%) -->1011 4, 5, // 4/5 (80%) -->984 1, 50; // 1/50 (2%) -->985
-
leloush reacted to Patskie in Question guys..
- script Sample -1,{ OnMinute00: query_sql "SELECT `account_id` FROM `char` WHERE `last_map` = 'prontera' ORDER BY RAND() LIMIT 1",.@aid; if ( attachrid( .@aid ) ) warp "prontera",150,150; end;}
Randomly choose a character on map prontera. Attach their account id and then do the warp.
-
-
-
-
leloush reacted to Patskie in Refiner to +10
Didn't test :
- successrefitem @refine;+ for ( .@i = getequiprefinerycnt(@refine)+1; .@i < 11; .@i++ ) + successrefitem @refine; -
leloush reacted to kyeme in hello hercules, about npc chat room
prontera,146,177,4 script xElekt RO 835,{end;OnInit: waitingroom "Elekt-RO",0; end;}
-
leloush reacted to Mhalicot in Hello, Pay zeny and item to warp in (map)
- script Warper -1,{ set .@price,1000; // Zeny required for warp set .@item,501; // Item Required for warp mes "["+strnpcinfo(1)+"]"; mes "Hi "+strcharinfo(0); if (.@item) { mes "Item required ^ff0000"+getitemname(.@item)+"^000000."; if (!countitem(.@item)) close; delitem getitemname(.@item),1; } if (.@price) { mes "Warp costs ^ff0000"+.@price+" Zeny.^000000"; if (Zeny < .@price) close; if(select("^0055FFWarp^000000:^777777Cancel^000000") == 2) close; set Zeny, Zeny-.@price; } warp "prontera",150,150;} or you can add this to your warper.txt
-
leloush reacted to Mhalicot in Hi need help bout X null item
try to change bVariableCastrate to bCastrate.
bVariableCastrate = renewal
bCastrate = pre-renewal..
if you check and compare your item data of pre-renewal and renewal..
this is the comparison
Renewal
4145,Berzebub_Card,Berzebub Card,6,20,,10,,,,,,,,136,,,,,{ bonus bVariableCastrate,-30; },{},{} Pre-renewal
4145,Berzebub_Card,Berzebub Card,6,20,,10,,,,,,,,136,,,,,{ bonus bCastrate,-30; },{},{}
if you are using item_db.conf
Renewal
{ Id: 4145 AegisName: "Berzebub_Card" Name: "Berzebub Card" Type: 6 Buy: 20 Weight: 10 Loc: 136 Script: <" bonus bVariableCastrate,-30; ">}, Pre-Renewal
{ Id: 4145 AegisName: "Berzebub_Card" Name: "Berzebub Card" Type: 6 Buy: 20 Weight: 10 Loc: 136 Script: <" bonus bCastrate,-30; ">}, -
leloush reacted to Mhalicot in Hi need help bout X null item
@ts please read http://herc.ws/wiki/Custom_Items
or Item Placement on Data Folder (For New Clients)
-
leloush reacted to ossi0110 in Hi need help bout X null item
what client date are you using ?
if you use a client higher then 2012-04-18 + you have to edit the Iteminfo.lub file what is located in the System folder of your ro client.
-
leloush reacted to Mhalicot in 2012-04-10 or 2012-04-18 which is better for svn rev12535
you can find that information here
> Custom Items - iteminfo.lub
you can also use iteminfo.lua if you diff your client "Read lua befor lub"
-
leloush reacted to ossi0110 in 2012-04-10 or 2012-04-18 which is better for svn rev12535
2012-04-10 still use the old itemfile , like id2numitemtable.tx etc , and it got many Hardcoded msg what have to be diffed or Hexed out .
2012-04-18 use the new Iteminfo.lub format what is easyer to handle and dont got the hardcoded msgs like the 2012-04-10
-
-
leloush reacted to ossi0110 in 2012-04-10aRagexeRE
there is some problem with your gameexe , i cant even open your uploaded exe ,
try to diff your exe with this exe and shinsdiffpatcher , he should select you all needed patches when you select the exe
http://www.mediafire.com/download/k7zhm73bo1nra2o/ShinsDiffPatcher.rar
-
leloush reacted to ossi0110 in 2012-04-10aRagexeRE
hmm the diff files looks ok , But you can remove the Disable Nagle Algorithm
Are you using a Clean KRO client ? or did you edited some files allready ?
try it with a clean Client , where you only edited the clientinfo.xml
-
leloush reacted to ossi0110 in 2012-04-10aRagexeRE
uhm why is your Server Folder mixed with your Client folder ?
you should download this client 2012-04-10 RagexeRE
it comes with all client files and all Tools what you need
this Client contains a YourRO.exe what is prediffed and you can use it for testing
Download Link
and be sure to configure your Hercules Server Correct up and Running