Jump to content

ocelote

Members
  • Posts

    52
  • Joined

  • Last visited

  • Days Won

    1

ocelote last won the day on May 7 2015

ocelote had the most liked content!

Profile Information

  • Gender
    Male
  • Location
    Ukraine
  • Interests
    rAthena

Recent Profile Visitors

2671 profile views

ocelote's Achievements

Poring

Poring (1/15)

7

Reputation

3

Community Answers

  1. - script pvprecovery -1,{ OnPCKillEvent: if (strcharinfo(3) == "guild_vs3") { dispbottom "Acabas de matar a strcharinfo(0) Recovery Automatico."; percentheal 100,100; } end; }
  2. 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 .@i,0; .@i < getarraysize(.TradeID); set .@i, .@i +1){ if(.TradeID[.@i] != 0) { set .@menu$, .@menu$ + "^0000FF "+getitemname(.TradeID[.@i])+" ^000000 x "+.TradeCount[.@i]+" x "+.TradeItemsAmm[.@i]+""; set .@menu$, .@menu$ + ":"; } } set .@Select, select(.@menu$) - 1; if(.TradeCount[.@Select] < 1) { mes "I don't have this item."; close; } mes "Do you want buy it?"; mes "I need - "+getitemname(.TradeItemsReq[.@Select]); mes " x"+.TradeItemsAmm[.@Select]; next; if(countitem(.TradeItemsReq[.@Select]) < .TradeItemsAmm[.@Select]) { mes "Where is my "+getitemname(.TradeItemsReq[.@Select]); close; } delitem .TradeItemsReq[.@Select], .TradeItemsAmm[.@Select]; getitem .TradeID[.@Select], 1; .TradeCount[.@Select] -= 1; close; } for(set .@i,0; .@i < getarraysize(.TodaySale); set .@i, .@i +1){ if(.TodaySale[.@i] != 0) { set .@menu$, .@menu$ + "^0000FF "+getitemname(.TodaySale[.@i])+" ^000000 x "+.TodayCount[.@i]+" x "+.TradeItemsAmm[.@i]+""; set .@menu$, .@menu$ + ":"; } } set .@Select, select(.@menu$) - 1; if(.TodayCount[.@Select] < 1) { mes "I don't have this item."; close; } mes "Do you want buy it?"; mes "I need - "+getitemname(.TradeItemsReq[.@Select]); mes " x"+.TradeItemsAmm[.@Select]; next; if(countitem(.TradeItemsReq[.@Select]) < .TradeItemsAmm[.@Select]) { mes "Where is my "+getitemname(.TradeItemsReq[.@Select]); close; } delitem .TradeItemsReq[.@Select], .TradeItemsAmm[.@Select]; getitem .TodaySale[.@Select], 1; .TodayCount[.@Select] -= 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))]; } } }
  3. 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;
  4. 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 :<)
  5. 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.
  6. 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
  7. 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.
  8. 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.
  9. Update your rAthena. It was a bug reported in #308 and was fixed in 2fdcd92. © And use search button next time. -)
  10. 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
×
×
  • Create New...