Senshuken
-
Posts
11 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Senshuken
-
-
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";
-
Hi Senshuken, thank you for your suggestion.
Yes, we already have plans to update IPB and this will probably happen in the next week or two. Since we have a lot of custom edits, we will be testing the update on a copy of the board before updating the live one.
cool thanks.
-
I was wondering if it can be updated to IPS 3.3.2+ so that it is compatible with the IPS mobile app.
-
This does already work with setd and getd:
getd(".somearray["+.@i+"]"); setd ".somearray["+.@i+"]", 0;
or did you mean something like that:
setdarray ".somearray", 0, 5, 4, 3, 6;
but here getdarray would make no sense, since you can only get 1 value at a time
You're right, getdarray would be pointless, but yes I do mean the setdarray ".somearray", 0, 1, 2, 3, 4
-
add
- setdarray
- getdarray
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.
- setdarray
-
add
- setdarray
- getdarray
- setdarray
-
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/
@notrade
in Source Requests
Posted · Edited 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:
To remove the changes do
To change the default state of the notrade change it at the bottom of the player.conf file
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