Jump to content

Brian

Members
  • Posts

    2223
  • Joined

  • Last visited

  • Days Won

    24

Everything posted by Brian

  1. Brian

    Inventory NPC

    If you want to actively disable the npc, you need a label to trigger it. OnInit: OnWed: if (gettime(4)=3) disablenpc strnpcinfo(3); end; (don't forget, you'll also need a label to trigger enablenpc when you want to enable it) If you want to passively disable the npc (just have it display a message to users), you could add this after the script heading: prontera,95,99,5 script custom seller 100,{ if (gettime(4)=3) { mes "The custom shop is closed today."; close; }
  2. callfunc "GRfunction",$@maps$[@menu],@menu;GRfunction only has 3 arguments (0, 1, and 2) All those getarg(3) should be getarg(2)
  3. Brian

    Bee Sting

    Did you set all the values to 100 or 10000 ? If you want to adjust the drop rate, you edit the first 2 lines.Example (5x rates): item_rate_common: 500 item_rate_common_boss: 500 To adjust the drop chance, you use the last 2 lines. Example: this means drop chances can be between 0.01% ~ 100.00% item_drop_common_min: 1 item_drop_common_max: 10000 Example: this means drop chances can be between 50.00% ~ 75.00%item_drop_common_min: 5000 item_drop_common_max: 7500
  4. Brian

    custom @go.

    One way would be an OnPCLoadMapEvent script, that announces with a fontColor and fontSize. announce "<text>",<flag>{,<fontColor>{,<fontType>{,<fontSize>{,<fontAlign>{,<fontY>}}}}};You could get the map names from /data/mapnametable.txt The icons on the minimap are probably done by editing the .bmp images in /data/texture/À¯ÀúÀÎÅÍÆäÀ̽º/map/
  5. Do you have @jumpto enabled for normal players ?!! There is no GM level check in trunk/src/map/atcommand.c, but you could add one.
  6. You can use getmapxy to get the location of both players. Then do 2 checks: 1) if both players are on the same map 2) AND if distance is less than getbattleflag("area_size") --> then this means both players are on the same screen.
  7. Connect to your MySQL Server, select the "ragnarok" database, and execute this query: REPAIR TABLE `char`;
  8. Just use [ code ] You can also click the "code" button then paste your code there. If the Rich Text editor is removing your tabs, try switching to the plain text editor (click the first button that looks like a light switch).
  9. You could also trigger the count to update when a player logs in/out. prontera,155,180,0 script Online Count 837,{ end; OnPCLoginEvent: OnPCLogoutEvent: // sleep 1000; // I'm not sure if online count updates before or after Login/Logout events trigger delwaitingroom; waitingroom getusers(1)+" "+( (getusers(1)==1) ? "user" : "users" )+" online", 0; end; }
  10. Also, did you delete any files from your /src folder? or move any of the Visual Studio files to different folders? You might want to try checking out a clean copy of rAthena from the SVN.
  11. You can also use the warp portal NPC sprite (45) prontera,155,188,0 script #warp_to_morocc 45,2,2,{ end; // do nothing when clicked OnTouch: // behave like a warp portal warp "morocc", 156,93; end; OnInit: set .message$, "Enter here to Morroc! "; while (1) { set .message$, delchar(.message$+charat(.message$,0),0); delwaitingroom; waitingroom .message$, 0; sleep 200; } }
  12. oops, forgot to login to Assembla for 2 years ... goodbye RaijeRO SVN

    1. EvilPuncker

      EvilPuncker

      fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck :( I was just searching for changeset 1142 but now its gone :( I don't even remember what it was about, but it was at my to-do list ;(

  13. rAthena already supports increment and decrement operators since r15982. query_sql already returns the number of rows returned by a SELECT query. Example: set .@num_rows, query_sql("SELECT `name` FROM `char` WHERE `name` LIKE '%test%'", .@name$); mes .@num_rows + " names contain the word *test*";
  14. OnPCLoadMapEvent only triggers when the first time they load/warp to a map. Teleporting around on the same map will not trigger OnPCLoadMapEvent again (I think that's what leertaste wants to do).
  15. Actually, there's only 1 variable you need to rename: DailyReward Change that to an account variable: #DailyReward (replace 3 times in the script).
  16. Our Bug Tracker is IP.Tracker. Here is an example of IP.Content as a Bug Tracker: http://community.invisionpower.com/resources/bugs.html (more info: IPS Company Blog → New Bug Tracker, powered by IP.Content)
  17. Run these 2 SQL queries while your server is offline: INSERT INTO global_reg_value (char_id,str,`value`,`type`,account_id) SELECT 0,CONCAT('#',global_reg_value.str),`value`,2,`char`.account_id FROM global_reg_value LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id WHERE global_reg_value.account_id=0 AND global_reg_value.str LIKE 'state_%'; DELETE FROM global_reg_value WHERE str LIKE 'state_%';
  18. #lastwarp and #lastwarp_array only store the last warp info. The unlocked status for each dungeon is stored in 50 state_*dun_***** variables. To change the unlocking to per-account, edit lines 664 and 733 to this: set .@state, getd("#"+.@stateName$); setd "#"+.@stateName$,.@playerChoice;Then you'd also have to change the existing variables already saved in SQL ...
  19. 1. make sure all characters on that account are logged out 2. execute this SQL query DELETE FROM `storage` WHERE account_id=2001122;(replace 2001122 with the account_id of the storage you want to erase)
  20. I found the function that sends normal chat messages (those are the messages right? where you can double click their name and it will paste in the Whisper To box?)trunk/src/map/clif.c clif_parse_GlobalMessage // send message to others (using the send buffer for temp. storage) WFIFOHEAD(fd, 8 + textlen); WFIFOW(fd,0) = 0x8d; WFIFOW(fd,2) = 8 + textlen; WFIFOL(fd,4) = sd->bl.id; safestrncpy((char*)WFIFOP(fd,8), is_fake ? fakename : text, textlen); //FIXME: chat has range of 9 only clif_send(WFIFOP(fd,0), WFIFOW(fd,2), &sd->bl, sd->chatID ? CHAT_WOS : AREA_CHAT_WOC); Maybe you could make a new script command that used this code, but instead of AREA_CHAT_WOC, send to ALL_CLIENT.
  21. Announcement: BBCodes In the Rich Text Editor, you can also click the 3rd button: and this will list the custom BBcodes (ones that don't have buttons in the Editor).
  22. I think the announce script command does the equivalent of a "nameless broadcast" (GM client command /nb). /nb sends the name differently than /b (broadcast with name). Edit: oops, @broadcast and 'announce' both use intif_broadcast sprintf(atcmd_output, "%s: %s", sd->status.name, message); intif_broadcast(atcmd_output, strlen(atcmd_output) + 1, 0);
  23. Depending on what "PVP Ladder" script you are using, the kills and/or deaths may be stored in different variables. Look at your PVP Ladder script and figure out what variable(s) the kills are stored in. Then delete those variables for every player.
  24. You can use the countitem2 script command, or use getinventorylist and check the @inventorylist_refine[] value.
  25. Updating status to: Duplicate (bugreport:7342)
×
×
  • Create New...