-
Posts
49 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Pancake
-
-
Will it work without setting .TotalZeny to 0 on init?
-
Welcome! I know you'll enjoy your time with us!
-
The locations of your NPC probably shouldn't have the ".gat" anymore.
Peopleperson49
It can still contain .gat, it doesnt affect it in anyway.
I know I can but it would be nice as as a default release that it already contains the most updated towns / dungeons. I have yet to see a warp script released that already contains the latest episode towns/dungeons.
I feel the same way, I'll be working on adding all the current towns into this warper.
-
Wow great job!
- 1
-
Sorry uploaded the wrong one.
WRONG ONE AGAIN
Okie dokie all good now!
-
Read First!
I found this script on pastebin, and modified it to work correctly with the help of Waeyan.
Features!
You can set the price to rent a room.
Rooms can be rented out to a party, a guild, or a single person.
You can set how much it costs to summon an MVP
You can set up to 9 different tiers for MVP summoning.
You can set how long a room may be rented for.
You can set whether or not if the room is empty to kill the monsters.
You can set how long the room can be left empty, until the room is automatically left open.
Download!
The cool stuff!
Find these lines to change your settings
[/left] [left]// Config ---------------------------------------------------------------------------------------[/left] [left]// Time for rent a room IN MINUTES. When time out, players inside the room will kick out. Do Not set this as 0 set .timeout, 30; // if the room left empty for # minutes, will be treated as give up the room. Do Not set this as 0 set .nobodygiveup, 5;[/left] [left]// NOTE : The script only search item OR zeny. if you specify item amount, then it will ask for the item. If item amount is 0, then it will ask for zeny.[/left] [left]// the cost to rent a room set .rentitemid, 0; // item id use for rent a room - 674 - mithil coin set .rentitemamount, 0; // amount of items to rent a room set .rentcost, 1000000; // otherwise, zeny cost to rent a room[/left] [left]// limit each room can only summon 1 monster at a time. (only the Summoning option) // Turn it off (0) means the player can summon a lot of monsters as long as the player has enough zeny/item. High rate server players love the room with a lot MVPs // Turn it on (1) means the player have to kill existing monster before can summon a new one. Low rate server player prefer to take out MVP 1 by 1 set .floodcontrol, 0;[/left] [left]// if .floodcontrol is turn off, your players might experience lag if they summoned too many MVPs // so what is the maximum input to limit your players summon too many ? set .inputlimit, 30;[/left] [left]// If the room has left over monsters while nobody in the room and the room not give up yet, shall we kill monsters in empty room ? set .killmonster, 0; // Default is yes[/left] [left]// Options menu setting for MVP Summoner NPC. set .@menu[0], 1; // Turn Heal option On/Off set .@menu[1], 1; // Turn Group 1 summons On/Off -> MVP set .@menu[2], 1; // Turn Group 2 summons On/Off -> mini boss set .@menu[3], 1; // Turn Group 3 summons On/Off set .@menu[4], 0; // Turn Group 4 summons On/Off set .@menu[5], 0; // Turn Group 5 summons On/Off set .@menu[6], 0; // Turn Group 6 summons On/Off set .@menu[7], 0; // Turn Group 7 summons On/Off set .@menu[8], 0; // Turn Group 8 summons On/Off set .@menu[9], 0; // Turn Group 9 summons On/Off set .@menu[10], 0; // Sell shop items options On/Off ( shop npc above )[/left] [left]// set respawn point when they leave the room. Obviously warp to the Private MVP Room Warper npc set .respawnmap$, "dicastes01"; // Note : "SavePoint" does NOT work set .respawnx, 261; set .respawny, 149;[/left] [left]// The minimum GM level can kick a room in use set .gmlvlkick, 80;
This is how the Tiers are set up.
// ---------
// Group 1
// ---------
set .group1name$, "Top Tier"; // Group 1 name
set .group1itemid, 0; // item id use for summon any Group 1 monster - 674 - mithil coin
set .group1itemamount, 0; // amount of items to summon a Group 1 monster
set .group1cost, 40000000; // if no item is specify, zeny cost to summon a Group 1 monster
set .group1limit, 0; // limit of summon of Group 1 monster per session, prevent them only killing same monster again and again
setarray .group1id,
1647,// Assassin Cross Eremes
1871,// Fallen Bishop
1768,// Gloom Under Night
1086,// Golden Thief Bug
1832,// Ifrit
1734,// Kiel D-01
1251,// Knight of Windstorm
1646,// Lord Knight Seyren
1147,// Maya
1650,// Sniper Shecil
1583,// Tao Gunka
1708,// Thanatos
1312,// Turtle General
1751,// Valkyrie Randgris
1685,// Vesper
1648,// Whitesmith Harword
1917;// Wounded MorrocYou can use @reloadscript to load this script. I have not tested it with @loadnpc.
Credits!
~AnnieRuru~ : Original Script
Waeyan : Identified problems with original script
Not Pancake : I didn't do anything.
- 1
-
If I can turn it into a Flux Addon, I will be able to make it viewable only by 99 GM. And i'll work on a page system! (:
-
[Error]: script:getvariableofnpc: can't find npc MVP Summoner [Debug]: Source (NPC): Private MVP Room at dicastes01 (263,149)
The script im using can be found at http://upaste.me/index.php?show=63438
I don't understand why it can't find npc MVP Summoner, especially because you can see MVP Summoner at the very top.
-
What is a pagination system?
-
I don't know how to analyze packets, and I am in need of urgent help. My server is currently under attack, and I need to know the largest packet used by the RO client, so that I can drop anything larger than that. Thankyou in advance <3
-
A solution for GM corruption, and player doubt!
Prize Giving NPC
GMs use this NPC to give rewards without using #item or trading! This should be used in combination with removing @item from your Event GMs commands, and disabling their ability to trade.
The NPC logs everything in a SQL table, which you will need to create.
The NPC broadcasts that a player has received a prize(GMs have no way to hide the broadcast)
This script was not made by me, but it was heavily edited so that it only gives an item that you specify in the the settings, and will work with the group_id system!
Warning: If you do not use the group_id system you'll need to replace all instances of getgroupid() with getgmlevel()
SQL Log Web Viewer (PHP)
You can find an example of it
here.It can be intergrated into a Flux page if you wish, but I chose not to.
Installation!
1)First execute this SQL query via phpmyadmin, or your preferred mysql query browser.
CREATE TABLE IF NOT EXISTS `itemizer` (
`id` int(11) unsigned NOT NULL auto_increment,
`item_id` int(11) NOT NULL,
`item_amount` int(11) NOT NULL,
`item_name` varchar(255) NOT NULL,
`char_id` int(11) NOT NULL,
`char_name` varchar(255) NOT NULL,
`reason` varchar(255) NOT NULL,
`by_gm` varchar(255) NOT NULL,
`when` datetime NOT NULL,
`for` varchar(255) NOT NULL,
`collected` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM ;2) Place EventRewards.txt in your NPC/Custom Folder, and add it to scripts_custom.conf as so
npc: npc/custom/EventRewards.txt3) (Optional Web Viewer) Open up Index.php and find this line.
mysql_connect("127.0.0.1", "User", "Password") or die (mysql_error ());and
mysql_select_db("rathena_rag") or die(mysql_error());
Change 127.0.0.1 to your SQL database's IP, User to your SQL username, Password to your SQL password, and lastly rathena_rag to the name of your Ragnarok Database.
4) Create a new directory inside public_html called "rewards" or whatever you like, and place index.php in there!
5) I am not sure if it is safe to @loadnpc this script, so for safety reasons, I would suggest restarting the rAthena emulator.
6) Now give it a test, and if completed correctly you should have http://yourROsite.com/rewards/ looking like this.
~Credits~
*******Latheesan ( He created the original NPC called "Itemizer" )*******
Pancake ( Created the web viewer, and modified the script to work with group_id )
Coming soon:
The ability for GMs to whisper this NPC, so that they can reward players from any map!
- 3
-
o/! Muy bueno!~
-
map,x,y,face<tab>script<tab>Rental Services<tab>72,{ mes "[Rental Services]"; mes "Hi, here you can rent Carts, Falcons, Mounts, and Mechanic Mado's"; next; switch(select("Cart:Falcon:Mount:Mado")) { case 1: if( (BaseClass == Job_Merchant || BaseJob == Job_SuperNovice) && checkcart() == 0 && getskilllv("MC_PUSHCART") > 0 ) { setcart; close; } else { mes "[Rental Services]"; mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job and have the required skill."; close; } case 2: if( (Class == Job_Ranger || Class == Job_Ranger_T) && checkriding() ) { mes "Sorry " + strcharinfo(0) + ", you can't rent a Falcon if you have a Warg rented."; close; } if( BaseJob != Job_Archer && BaseClass == Job_Archer && checkfalcon() == 0 && getskilllv("HT_FALCON") > 0 ) { setfalcon; close; } else { mes "[Rental Services]"; mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job and have the required skill."; close; } case 3: mes "[Mount Rentals]"; if (Class == Job_Rune_Knight || Class == Job_Rune_Knight_H || Class == Job_Baby_Rune ) { mes "Welcome. Would you like to rent a Dragon?"; next; switch(select("Yes:No")) { case 1: //if (!getskilllv("RK_DRAGONTRAINING")) { if (!getskilllv("KN_RIDING")) { mes "[Mount Rentals]"; mes "Please learn how to ride a Dragon first."; close; } if (checkriding()) { mes "[Mount Rentals]"; mes "You already have a Dragon."; close; } setdragon; close; case 2: mes "[Mount Rentals]"; mes "I see. Then have a great day."; close; } } else if (Class == Job_Royal_Guard || Class == Job_Royal_Guard_H || Class == Job_Baby_Guard) { mes "Welcome. Would you like to rent a Gryphon?"; next; switch(select("Yes:No")) { case 1: if(!getskilllv("KN_RIDING")) { mes "[Mount Rentals]"; mes "Please learn how to ride a Gryphon first."; close; } else if (checkriding()) { mes "[Mount Rentals]"; mes "You already have a Gryphon."; close; } setriding; close; case 2: mes "[Mount Rentals]"; mes "I see. Then have a great day."; close; } } else { mes "Welcome. Would you like to rent/remove a Mount?"; next; switch(select("Yes:No")) { case 1: if ((Class >= 4054 && Class <= 4079) && (Class != 4056 && Class != 4062)){ atcommand "@newmount"; close; } else mes "[Mount Rentals]"; mes "You must be a 3rd class, and not a Ranger to rent a mount from me."; close; case 2: mes "[Mount Rentals]"; mes "I see. Then have a great day."; close; } } case 4: if( (Class == Job_Mechanic || Class == Job_Mechanic_T) && checkriding() == 0 ) { setriding; close; } else { mes "[Rental Services]"; mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job."; close; } } }
You can check the script there, or download the txt below.
-
Store current time → Send ZC_REASSEMBLY_CERTIFY → Receive CZ_REASSEMBLY_IDENTITY → Calculate ping+pong from (current time - stored time)
I have no experience with C so I can't write this, now we just wait for someone to make a quick code.
Does anyone here know if currtime() works in C, like it does in C#?
Also bump. Its been a while.
-
A month later but i found it, and I figured I might as well leave it here, for other people on rAthena.
-
Its extremely stable after a few tried, even when rebooting the server now it doesnt disconnect pipe broken once
-
I really like this idea, if anyone could go further into detail on how it might be accomplished that would be amazing.
-
Probably not, but he decided to take care of it for her, because shes a customer.
-
Mine had a few broken pipe disconnects but after 4 reconnects, it finally got a stable connection.
-
After patching the first 2 files, It tries to patch irc.c but fails.
[root@VeritasRO rathena]# patch -p0 < IRCBot1.6.diff
patching file src/map/irc.c patch: **** malformed patch at line 711: Index: src/map/irc.h
Heres some lines around where the code is.
+void do_final_irc(void) +{ +} Index: src/map/irc.h =================================================================== --- src/map/irc.h (revision 0) +++ src/map/irc.h (working copy) @@ -0,0 +1,81 @@ +// Copyright © Athena Dev Teams - Licensed under GNU GPL
-
My Emp Breaker test room isnt spawning Emperium clones, but I know it is trying to.
[Warning]buildin_monster: Attempted to spawn non-existing monster class 3024
Inside both mob_db's are exact copies of Emperium, like so.
1288,EMPELIUM,Emperium,Emperium,90,1284300,0,0,0,1,60,71,40,50,1,17,80,50,26,20,10,12,0,8,26,0x120,300,1288,288,384,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 3024,EMPELIUM_2,Emperium,Emperium,90,1284300,0,0,0,1,60,71,40,50,1,17,80,50,26,20,10,12,0,8,26,0x120,300,1288,288,384,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
And I have added into mob_avai
3024,1288
The NPC I am using is here
http://www.eathena.w...howtopic=254539
Ive done what the instructions have said to do, and I am pretty sure the NPC is functioning correctly but for some reason it wont work.
Maybe mob DB is completely sql?
Edit: When changing the mobID of what it spawns to 1228, it still gives the same warning, therefor its not sql/txt db problems.
-
I feel like you'd still have like 3-4 ms ping...why do we need such a command? o.OSo we can be like
@ping
0 ms
"my test server (127.0.0.1) has amazing ping!"
But yes, has anyone made any progress at all with this? I know there is a new tool for dealing with packets.
-
...gets posted right here.
<Pancake> Those things werent cool, when they were cool Mirage <Pancake> If you dont have a family of 7 <Mirage> um <Pancake> /sorry <Mirage> yes they were <Mirage> LOL <Pancake> No they werent lol <Mirage> Raise them <Mirage> blast music <Pancake> Big Mexican dudes <Pancake> thought they were cool <Mirage> <---- <Mirage> I am cool <Mirage> LMAO
-
Initially only to check your own lag.
But on another end, #ping player, is he lagging? ( A lot of players will claim WPE, or endless spam, on lag. Now we can check if its true )
Its just something basic, that comes in handy everywhere. If you've ever played an FPS, or MOBA you check your ping every game/match.
contribute + rates
in Scripting Support
Posted
Oh I see. So we dont have to define variables with set, its just assumed that any variable is equal to 0 unless set to something else?