ocelote
Members-
Posts
52 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by ocelote
-
- script pvprecovery -1,{ OnPCKillEvent: if (strcharinfo(3) == "guild_vs3") { dispbottom "Acabas de matar a strcharinfo(0) Recovery Automatico."; percentheal 100,100; } end; }
-
OK. I will update it today Don't have time now. bump, it's works now : prontera,150,150,6 script Daily Item Sale 100,{ mes "Hi"; next; if(select("Sale!:All items") == 2) { for(set [email protected],0; [email protected] < getarraysize(.TradeID); set [email protected], [email protected] +1){ if(.TradeID[[email protected]] != 0) { set [email protected]$, [email protected]$ + "^0000FF "+getitemname(.TradeID[[email protected]])+" ^000000 x "+.TradeCount[[email protected]]+" x "+.TradeItemsAmm[[email protected]]+""; set [email protected]$, [email protected]$ + ":"; } } set [email protected], select([email protected]$) - 1; if(.TradeCount[[email protected]] < 1) { mes "I don't have this item."; close; } mes "Do you want buy it?"; mes "I need - "+getitemname(.TradeItemsReq[[email protected]]); mes " x"+.TradeItemsAmm[[email protected]]; next; if(countitem(.TradeItemsReq[[email protected]]) < .TradeItemsAmm[[email protected]]) { mes "Where is my "+getitemname(.TradeItemsReq[[email protected]]); close; } delitem .TradeItemsReq[[email protected]], .TradeItemsAmm[[email protected]]; getitem .TradeID[[email protected]], 1; .TradeCount[[email protected]] -= 1; close; } for(set [email protected],0; [email protected] < getarraysize(.TodaySale); set [email protected], [email protected] +1){ if(.TodaySale[[email protected]] != 0) { set [email protected]$, [email protected]$ + "^0000FF "+getitemname(.TodaySale[[email protected]])+" ^000000 x "+.TodayCount[[email protected]]+" x "+.TradeItemsAmm[[email protected]]+""; set [email protected]$, [email protected]$ + ":"; } } set [email protected], select([email protected]$) - 1; if(.TodayCount[[email protected]] < 1) { mes "I don't have this item."; close; } mes "Do you want buy it?"; mes "I need - "+getitemname(.TradeItemsReq[[email protected]]); mes " x"+.TradeItemsAmm[[email protected]]; next; if(countitem(.TradeItemsReq[[email protected]]) < .TradeItemsAmm[[email protected]]) { mes "Where is my "+getitemname(.TradeItemsReq[[email protected]]); close; } delitem .TradeItemsReq[[email protected]], .TradeItemsAmm[[email protected]]; getitem .TodaySale[[email protected]], 1; .TodayCount[[email protected]] -= 1; close; OnInit: setarray .TradeID[0], 12210, 14533, 14545, 7619, 7620, 7227, 7228, 7229, 7230; //your cards id setarray .TradeCount[0], 5, 5, 5, 3, 3, 3, 2, 1, 3; //card count setarray .TradeItemsReq[0], 7179, 7539, 7711, 7179, 7539, 7227, 7228, 7229, 7230; //pod, poring coin, event ticket setarray .TradeItemsAmm[0], 1, 2, 3, 4, 5, 2, 3, 5, 4; // amount of ^ items for(.i = 0; .i < 5; .i ++) { // 5 items if(.TradeID[.i] != 0) { .TodaySale[.i] += .TradeID[rand(getarraysize(.TradeID))]; .TodayCount[.i] += .TradeCount[rand(getarraysize(.TradeCount))]; } } end; OnClock0000: for(.i = 0; .i < 5; .i ++) { // 5 items if(.TradeID[.i] != 0) { .TodaySale[.i] += .TradeID[rand(getarraysize(.TradeID))]; .TodayCount[.i] += .TradeCount[rand(getarraysize(.TradeCount))]; } } }
-
Yes, I think this is good. Now have to figure out how to make it choose 5 random items from the .TradeID[0] and put it on the sale list or something, is that possible? OnClock2000: .SaleID = .TradeID[rand(getarraysize(.TradeID))]; // get random id for sale .SaleAmount = 5; // amount? .SaleCost = 1; // cost? end; mes "Today sale : "+getitemname(.SaleID); if(.SaleAmount == 0) { mes "No items for sale :<"; close; } mes "It will cost you : "+yourid+" x "+.SaleCost; mes "I have : "+.SaleAmount+" items!"; next; if(select("Buy it:Nop") == 2) close; if(countitem(yourid) < .SaleCost) close; getitem .SaleID, 1; .SaleAmount -= 1; close;
-
some like this? OnClock0000: setarray .TradeID[0], 4031; //your cards id setarray .TradeCount[0], 1; //card count setarray .TradeTCG[0], 2; //card cost in tcg end; sorry but i don't understand your post at all (my bad english :<)
-
Update. I write a addon for Flux CP. It's can: Add you FluxCP credit points Add you VIP Time (for rA VIP System) Maybe later i will add all functions for site (base level, item, class change and etc.) I will translate this Addon for you, if you want buy it.
-
You can't use function with OnPCLoginEvent lable But better try a OnMapLoadEvent and loadevent mapflag -[tab]sript[tab]npc_name[tab]-1,{ OnPCLoginEvent: if(JobLevel>20) { bonus bSpeedRate,40; bonus bSPrecovRate,10; bonus bHPrecovRate,10; atcommand "@monsterignore"; } if(JobLevel<=20) { bonus bSpeedRate,30; bonus bAspdRate,10; bonus bVariableCastrate,-30; } end; } You can read about loadevent in script_commands.txt
-
rentitem id, time;
-
[SQL] PvP Rating + PHP
ocelote replied to ocelote's topic in PvP, GvG, WoE, Battleground Script Releases
Any features to be added: like? for e.g the other char feed from other char enable to get many kills. prevent abused of the script. Yes i will add something like this. Thank you for idea. -
[SQL] PvP Rating + PHP
ocelote replied to ocelote's topic in PvP, GvG, WoE, Battleground Script Releases
upd. sounds: leaguesound.zip -
something like this
-
Набор в команду людей. Создание сервера Ragnarok
ocelote replied to stigg's topic in Основной раздел
1 пост, чёт падазрительна. -
Increase GM broadcast text length. Possible?
ocelote replied to magicman's question in General Support
Maybe. goto src/map/map.h and find //Max allowed chat text length #define CHAT_SIZE_MAX (255 + 1) and change it to your. But I do not know if it will work. -
Update your rAthena. It was a bug reported in #308 and was fixed in 2fdcd92. © And use search button next time. -)
-
[SQL] PvP Rating + PHP
ocelote replied to ocelote's topic in PvP, GvG, WoE, Battleground Script Releases
Sorry but i don't have it now. How to add this rating to flux : first, goto sitedirectory/modules/ranking/ and add this file: pvp.php after this, goto sitedirectory/themes/your theme directory/ranking/ and add this file: pvp.php don't forget to add pvp rating to your menu /?module=ranking&action=pvp -
Hello! I have one question about questinfo script command. If i use questinfo 63004, QTYPE_QUEST, 1; Mapserver always show me debug: [Debug]: Source (NPC): Eden Helper at prontera (142,171) How i can fix this?
-
how to reset , only hair , hairstyle , cloth color in phpmyadmin
ocelote replied to blacklistro's question in Database Support
if i want all ID/ Char in my SQL database. where hair > '0' and etc -
how to reset , only hair , hairstyle , cloth color in phpmyadmin
ocelote replied to blacklistro's question in Database Support
but add - where char_id = '"+getcharid(0)+"' -
When you warp with "*warp <map>,x,y;" you automatically revive. Just add agi+bless to my script.
-
Database Merging Infinite Loop Problem HELP
ocelote replied to nasagnilac's question in Database Support
try add freeloop(1); after set .charid,162000; and freeloop(0); before end; -
I forgot to mention. Weapons are excluded. It shouldn't put weapons on the menu if weapon is equipped. How would I do that? Oh, sorry i don't know you can add check if (getequipisequiped(EQI_HAND_L)) {mes "uneqip weapon first"; close;}
-
ra/npc/quests/ is example
-
set [email protected]$, ""; for(set [email protected],0; [email protected] < getarraysize(.eqp$); set [email protected], [email protected] +1){ if(.eqp$[[email protected]] != "") { set [email protected]$, [email protected]$ + "- [^0000FF"+getitemname(getequipid([email protected]))+"^000000]"; set [email protected]$, [email protected]$ + ":"; } } set @selected,select([email protected]$)-1;
-
OnPCDieEvent: if(strcharinfo(3) == "your map"){ sleep2 4500; warp "map",x,y; sleep2 500; percentheal 100,100; end; }
-
[SQL] PvP Rating + PHP
ocelote replied to ocelote's topic in PvP, GvG, WoE, Battleground Script Releases
updated php script and preview