Jump to content

Xynvaroth

Members
  • Posts

    254
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Xynvaroth

  1. There is not a really good solution which I can think of. You could be running a NPC script with an infinite loop which would - each second - check and redisguise all those players who have set a headgear disguise, but this would consume much resources. I would suggest you to implement an usable item which players can use to (re)diguise. You can just copy the code below the OnPCLoginEvent label.
  2. OnAgitStart will only be triggered when the original WoE starts. OnAgitEnd will not be triggered when WoE SE ends.
  3. Are you looking for something like that: release-script.googlecode.com/svn/Premium disguise headgear.txt (sorry, the tag doesn't seem to properly show the link) ? If yes, then the part where the look is actually changed is this: OnPCLoginEvent: if (hastop) changelook 4,premiumtop; if (hasmid) changelook 5,premiummid; if (haslow) changelook 3,premiumlow; end; The NPC will let the player select the headgar they would like to see on his or her character and saves the headgear's view id into the premiumtop, premiummid or the premiumlow variable. In addition, the variable hastop, hasmid or haslow will contain 1 if a player has saved a disguise headgar and 0 if he or she hasn't (which I would not suggest, because you could just check whether premiumtop, premiumid or premiumlon is set or not without needing an other variable).Whenever a player logs in, it will then change the look of the player to the earlier saved view id.
  4. I tried that script with the latest rAthena SVN and it did work. However, I was alone on my test server. Have you tested it with players online? In general, this OnPCLoginEvent solution is a rather unhappy one and it might cause the problems. You should rather get the players online by querying the char table, because there are always five seconds in this script to update which might lead to attachrid problems. The char table is always up to date, so using it is the best solution for this issue. deletearray .@AccountIDsOnline[ 0 ], getarraysize( .@AccountIDsOnline ); query_sql "SELECT `char`.`account_id` FROM `char` WHERE `char`.`online` = 1", .@AccountIDsOnline;Please note that this solution will only work properly if you never have more than 128 players online on your server. If you have more players, a more complex solution is needed. You would have to use the OFFSET functionality of MySQL in that case.If you want to check a certain map, you would firstly select all players online and then loop through the account ids, attach each single player and check the player's map. If you have problems realising this, tell me and I will help.
  5. You should post this into the Source Support, because this is no scripting issue.
  6. OnAgitEnd is triggered when the original WoE ends and OnAgitEnd2 is triggered when WoE SE ends. The end of WoE SE will not trigger both labels.
  7. Skorm offered you a solution to exclude one map already: if(strcharinfo(3)=="payon"){ warp "SavePoint",0,0; }If you want a generic solution with which you can just list all maps to be excluded in an array, try this:OnPCDieEvent: deletearray .@ExcludedMaps$[ 0 ], getarraysize( .@ExcludedMaps$[ 0 ] ); setarray .@ExcludedMaps$[ 0 ], "payon", "prontera", "izlude"; // [Xynvaroth]: Add all the maps to be excluded here. for( set .@Index, 0; .@Index <= getarraysize( .@ExcludedMaps$ ); set .@Index, .@Index + 1 ) if( strcharinfo( 3 ) == .@ExcludedMaps$[ .@Index ] ) end; // [Xynvaroth]: Put the rest of your code after this comment.
  8. This is not a scripting issue. Apart from that, you should report this as a bug if it occurs with the latest rAthena version.
  9. Hallo, ich möchte gerne meine Dienste gegen Bezahlung anbieten, aber bei der Beschreibung des entsprechenden Bereichs steht explizit, dass nur kostenlose Angebote veröffentlicht werden dürfen. Wo kann ich ein Thema für bezahlte Dienste im deutschen Forum eröffnen? Vielen Dank im Voraus. Ich habe das nun im entsprechenden Bereich als Vorschlag geäußert: http://rathena.org/board/topic/84753-area-for-paid-services-in-the-german-forum/
  10. Hello, I would like to suggest a forum area in the German forum which can be used to offer paid services. Thanks.
×
×
  • Create New...