Jump to content

Recommended Posts

  • 2 weeks later...
Posted

show your edited script...and check for any error or etc...

here's

- script Sample -1,{
OnPCLoadMapEvent:
if( strcharinfo(3) == .Map$ ){
query_sql( "SELECT `last_ip` FROM `login` WHERE account_id="+getcharid(3)+"",.@IP );
query_sql( "SELECT `account_id` FROM `login` WHERE last_ip="+.@IP+"",.@Accountlist );
for( set .@i,0; .@i < getarraysize( .@Accountlist ); set .@i,.@i + 1 )
if( isloggedin( .@Accountlist[.@i] ) )
 set .@DetectedOnline,.@DetectedOnline + 1;
if( .@DetectedOnline > .Limit ){
 mes "We detected there is "+.@DetectedOnline+" Users with same IP Logged in.";
 mes "Please log off these unused account.";
 close2;
 warp "prontera",155,181;
}
}
end;
OnInit:
// How many User with Same IP can logged in and stay at the specific map
set .Limit,2;
// What map will be restricted
set .Map$,"lighthalzen";
setmapflag .Map$,mf_loadevent;
end;
}

still I can dual login even third login on lighthalzen map..

Im using r16986

Posted

thanks to your script sir...

can you help me here . i want those who kill the mushroom will be jail for 1 hr....

hos to do this sir?

OnKilled:

mes "You will be punished upon killing these Monsters and interupt the Game.";

set @Spam,30;

close2;

npctalk "Round Restarted due to interruption.";

donpcevent strnpcinfo(0)+"::OnStartGame";

end;

}

Posted

mes "You will be punished upon killing these Monsters and interupt the Game.";
atcommand "@jail "+strcharinfo(0)+" 1h";

not sure the "1h" is it refer to 1 hours of jail time.

  • 2 weeks later...
Posted

For the "Class Restriction" script, can you edit the script to where it includes restriction to original maps (excluding) / <4 custom maps here>

what mean ??

you can edit the script freely .... depend on what you want it to work like....

Posted

script error on npc/stayro/emkz/Stage_Game.txt line 27
   parse_simpleexpr: unmatch ')'
   22 :
   23 : for( set .@mf,0; .@mf < getarraysize( .MapFlags ); set .@mf,.@mf + 1 ){
   24 :	    setmapflag strcharinfo(3),.MapFlags[.@mf];
   25 :	    }
   26 :
*   27 : if( getmapmobs'(' strcharinfo(3) ) > 0 || .Level > 0){
   28 : dispbottom "Just Kill All the Monster to Win the Game...";
   29 : end;
   30 : }
   31 : set .Level,0;
   32 : announce "[Level "+( (.Level/2)+1 )+"] : [ "+.Stage[.Level+1]+" x "+get
monsterinfo( .Stage[.Level],0)+" ]",bc_all,0x37FDFC;

Why is this happening to me?

Posted

getmapmob() script command has been removed in rAthena...and i havent update the stage game...kinda lazy to update it.

will update it later on ~

alternative way you can take....

change the getmapmob into mobcount

or..

get the getmapmob source snippet..and apply to your server.

Posted

getmapmob() script command has been removed in rAthena...and i havent update the stage game...kinda lazy to update it.

will update it later on ~

alternative way you can take....

change the getmapmob into mobcount

or..

get the getmapmob source snippet..and apply to your server.

Thanks Emistry

  • 2 weeks later...
Posted

[ Update ] : Updated Refine Function Script :

Description :

It is a Function Script for Refine Equipment without Failure Rate. The script are now able to use indenpendently in a NPC or an Item. Which mean, you can create multiple or numerous NPC Script + Items Script for Refining in your server. All of the Setting are independent..will not affect each others.

This Script will be able to answer / solve those below problems.

Please make me 1 100% Refiner +1 until +7.......

Please make me 1 100% Refiner +1 until + 10 .......

Please make me a Refine Ticket .....

and so on......


The BitMask Table :

//--- Bitmasks ----
// 1 - Top Headgear
// 2 - Armor
// 4 - Left Hand
// 8 - Right Hand
// 16 - Garment
// 32 - Shoes
// 64 - Left Accessory
// 128 - Right Accessory
// 256 - Middle Headgear
// 512 - Lower Headgear

If you want to allow the refine on those part....then just put in the Number ( for Single Part Refiner ) or Add in all the Number ( for Multiple Part Refiner )

For Example :

A Refiner that can refine Top Headgear Only ( BitMask = 1 )

A Refiner that can refine Both Left / Right Accessory Only ( BitMask = 126 + 64 = 190 )

A Refiner that can refine Armor / Garment / Shoes Only ( BitMask = 2 + 16 + 32 = 50 )

and etc.....


Function Script Calling :

callfunc( "RefineFunc",<itemID>,<BitMasks>,<MaxRefine>,<CheckEquip>,<RefineMode> );

Explaination on Each Argument :

// itemID -> Item that will be used.
// BitMask -> Refer to above bitmask table.
// MaxRefine -> What is the Max Refine. [ Can Bypass Default Server Max Refine ]
// CheckEquip -> Check Equipments is Refineable or not. [ 0 = Disable / 1 = Enable ]
// RefineMode -> +1 / Max Refine. [ 0 = +1 Refine / 1 = Max Refine ]


Sample Script :

Use as Item ( Refine Ticket ) :

501,Red_Potion,Red Potion,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc( "RefineFunc",501,63,10,1,1 ); },{},{}

Caution : Change Item Type to 11

Use as NPC Script ( Custom 100% Refiner ) :

prontera,155,181,5 script Refiner 757,{
callfunc( "RefineFunc",501,63,10,1,1 );
}

You can create as many NPC / Items for refine as you want to...

just make sure youprovide the correct Settings.

With this script, you can create several NPC that can allow users to refine items 100% success using certain items and different max refine level.

So, that your server wont need to focus on using 1 NPC. You can make 1 NPC for refine +5 / +6 / +7 using Elunium without fail, then you can further the refine to +8 / +9 using another NPC with different Items, and lastly +10 another NPC. It is all up to you.

Refine Function [ Version 4 ]

Changelog :

  • [ Version 1 ] - Cleaner and Compact than previous version.
  • [ Version 2 ] - Enable simple Customization on script.
  • [ Version 3 ] - Fixed some mistake typo and bug.
  • [ Version 4 ] - More Customized and able to apply on Multi NPC / Items with Independent Settings.

Scripts : View Download

Please spend your time to read all the things i have write / mentioned in the post before you asking any questions.

if got bug / problems please do report to me. ani_heh.gif

@emistry, can you convert it into eathena SVN. I need also this one. Thanks.

Posted

Hi sir emistry.

i have problem with your Breaker Room version 3.

when i rent a room and the duration expires it will warp me back to my savepoint..

the problem is: 

1. the memorial dungeon message is still there. see image below.

post-5991-0-20948600-1360846570_thumb.jpg

and also when the Timeout duration expires that message still there.

2. Another problem is if i try to rent a room without enough zeny it got stuck.

post-5991-0-45341300-1360846760_thumb.jpg

it should close or mes you dont have zeny then close right?

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...