Senshuken
Members-
Posts
11 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Senshuken
-
Well here's a simple @notrade with some source edit. There might be a better way to do this. I changed some of structs to include a new field int no_trade. Anyways to add the patch, first put the file in the root directory your server then do the following: patch -p0 < notrade.patch To remove the changes do patch -p0 -R < notrade.patch To change the default state of the notrade change it at the bottom of the player.conf file // conf/battle/player.conf // Disable trading between players unless they turn it off // Default: 0 (0: disabled, 1: enabled). // [Senshuken] no_trade: 0 I haven't tested it extensively, just did a small test. Let me know how it works out for you. PS: If someone finds my way of doing this a bad idea, please let me know what I can do to improve it. Thanks. notrade.patch
-
Here's the log: http://pastebin.com/xtA3Avq3 Running CentOS 5.9 i686 i686 i386 GNU/Linux Any hints on what is wrong? Never seen this error before. At revision 17202. cmake version 2.8.10.2 gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54) EDIT: Compiling it without using cmake works fine.
-
Isn't this basically /notrade command?
-
Didn't check, if there was a newer version of Multi Currency Shop. But version 5, you have a bug on this line mes "[ ^FF0000X^000000 ] Insufficient ^0000FF"+getitemname( (@Currency$ )+"^000000"; missing function atoi() mes "[ ^FF0000X^000000 ] Insufficient ^0000FF"+getitemname( atoi(@Currency$) )+"^000000";
-
I was wondering if it can be updated to IPS 3.3.2+ so that it is compatible with the IPS mobile app.
-
You're right, getdarray would be pointless, but yes I do mean the setdarray ".somearray", 0, 1, 2, 3, 4
-
I think getelementofarray can be used to do some of this. For example: set .@group, 1; // for each element in .items_1[] for (set .@i,0; .@i<10; set .@i, .@i+1) { set .@this_item, getelementofarray(getd(".items_"+.@group), .@i); // do stuff with .@this_item } Sorry, I meant it as a dynamic array setter and getter.
-
[Free Release] Botanic Dark Garden Prontera
Senshuken replied to Olrox's topic in Maps & 3D Modeling Showcase
Any mirrors? rA download section is down : -
Running this - script test -1,{ OnWhisperGlobal: set var1, var2; dispbottom "Set var1 to var2"; set var1, .var2; dispbottom "Set var1 to .var2"; set var1, $var2; dispbottom "Set var1 to $var2"; end; } Outputs this on the console [Error]: script:copyarray: illegal scope [Debug]: Data: variable name='var1' [Debug]: Data: variable name='$var2' index=0 [Debug]: Source (NPC): test (invisible/not on a map) And running this - script test -1,{ OnWhisperGlobal: set var1, var2; dispbottom "Set var1 to var2"; set var1, .var2; dispbottom "Set var1 to .var2"; set var1, $var2; dispbottom "Set var1 to $var2"; end; } Outputs this [Error]: script:copyarray: illegal scope [Debug]: Data: variable name='var1' [Debug]: Data: variable name='.var2' index=0 [Debug]: Source (NPC): test (invisible/not on a map) Any idea why it's doing it? Am I not allowed to set different type of variables to player bounded variables? Reported: http://rathena.org/board/tracker/issue-5675-copying-global-variable-to-player-variable-error/