-
Posts
833 -
Joined
-
Last visited
-
Days Won
9
Community Answers
-
Start_'s post in Need code fix (problem with timers) was marked as the answer
- script TestScript::QuickTest 4_F_03,{ mes "What you want?"; next; switch(select("Use Charge", "See Charge", "Exit")) { case 1: if (.n_now > 0){ .n_now--; if (.n_now < .n_max) { setnpctimer 0; initnpctimer; npctalk "Starting recharges."; } getitem 512, 1; .cont = .delay; mes "Current C.: "+.n_now+"/"+.n_max; mes "Next Charge in "+((.cont)/1000)+"s."; } else{ mes "No Charges."; } close; case 2: mes "Delay per C.: "+.delay/1000+"s"; mes "Current C.: "+.n_now+"/"+.n_max; mes "Next Charge in "+((.cont)/1000)+"s."; close; } close; OnTimer4000: .n_now++; .cont = .delay; npctalk "Current C.: "+.n_now+"/"+.n_max; stopnpctimer; setnpctimer 0; if (.n_now >= .n_max) end; initnpctimer; npctalk "Next Charge in "+((.cont)/1000)+"s."; end; OnInit: .n_max = 5; //max charges .n_now = 5; //actual charge .delay = 4*1000;//time to recover 1 charge .cont = 0; //actual time left to recharge end; } prontera,164,170,4 duplicate(QuickTest) Test Quick#prt 4_F_03 Tested.
-
Start_'s post in display the amount of zeny you receive was marked as the answer
[email protected]_reward = rand(5000,50000); Zeny += [email protected]_reward; dispbottom "Gained " + [email protected]_reward + "z";
-
Start_'s post in Check equipment ID the player is using was marked as the answer
use
getequipid();
doc\script_commands.txt line 2607
then just add $equip_id_blablabla = n;
-
Start_'s post in Falcon visible when hunter is on Hide was marked as the answer
It's work fine with lastest rAthena please try to use lastest rAthena.
-
Start_'s post in Universal Catalog Silver Help was marked as the answer
Item name must be exact name like this
Red Potion
If you type Red it's not showing up.
If I'm wrong then wait for other people answer.
-
Start_'s post in npc slotting with new equip was marked as the answer
npc\merchants\socket_enchant.txt
npc\merchants\socket_enchant2.txt
Missing some item then add it manually.
-
Start_'s post in Error Building_getitem was marked as the answer
Try
prontera,137,111,5 script Maurel 604,{ // January ~ December Item Lists setarray [email protected][0],7539,5022,512,607,608,7539,5022,512,607,608,7539,5022; setarray [email protected][0],10,10,10,10,10,10,10,10,10,10,10,10; if(#MonthlyReward != gettime(DT_MONTH)){ getitem [email protected][gettime(DT_MONTH)-1],[email protected][gettime(DT_MONTH)-1]; #MonthlyReward = gettime(DT_MONTH); mes "You have grant an item for this month."; } else mes "You cant take a reward again this month."; close; }
-
Start_'s post in R > npc to get rid of bound items was marked as the answer
D:\rathena\conf\battle\items.conf
// Allow selling of bound/sell restricted items as Itemshop currency? (Note 3) // 0x0 = Bound/sell restricted items are unable to be sold to Itemshops/Shops // 0x1 = Bound items are able to be sold to Itemshops // 0x2 = Sell restricted items are able to be sold to Itemshops // 0x4 = Bound items are able to be sold to Shops, // because most of trade restricted items are still able to be sold to Shops // 0x8 = Only Guild Leader can sell BOUND_GUILD items to Shops or Itemshops (if 0x1 or 0x4 set) allow_bound_sell: 0x0
-
Start_'s post in R>Script for an item that gives discount for a certain shop was marked as the answer
Use shop scripts like this.
And make your own script to discount.
D:\rathena\doc\sample\npc_dynamic_shop.txt
-
Start_'s post in Chat Spam [Allow chat spam] was marked as the answer
Client side, When patching nemo.
-
Start_'s post in instant stats and skills was marked as the answer
prontera,99,99,5 Stats and Skills 477,{ atcommand "@allskill"; atcommand "@allstats 120"; end; }
-
Start_'s post in Maps not showing night mode was marked as the answer
alb2trea mapflag nightenabled Change to your new maps.
-
Start_'s post in how to fix unseccessful compile was marked as the answer
My solve is
Clean Solution > Set build option to Debug > Build > Clean > Set build option to Release > Build
-
Start_'s post in Script didnt work as i wish was marked as the answer
prontera,136,200,2 script Loyal Knight of Rune Midgard 418,{ if (countitem(7281) < 1) { mes "[Herold]"; mes "Welcome to Invek"; mes "I'm happy to welcome you here, friend."; mes "Are you here to help us with those fanatic church dudes?"; next; switch (select("Yes, Lord!:I'm not sure, Lord!:No, sorry!")) { case 1: mes "[Lord Asterix]"; mes "Fine! May our king bless you, kid!"; mes "First you need to prove us how loyal you are, kid."; mes "Bring me..."; next; mes "5 Emperium"; mes "100 Jellopy"; mes "100 Heart of Mermaid"; mes "25 Nose Ring of Minotaur"; next; mes "When you have all those items come back"; mes "and talk again to me, ok?"; if (countitem(714) >= 5 && countitem(909) >= 100 && countitem(941) >= 25 && countitem(950) >= 100) { switch (select("Here, I've got them:Maybe later")) { case 1: mes "[Lord Asterix]"; mes "Wow! I didn't thought that you were so fast!"; mes "Let me take this treasures for you."; next; delitem 714,5; delitem 909,100; delitem 941,25; delitem 950,100; getitem 7182,1; next; mes "[Lord Asterix]"; mes "Here you have your offical Emblem of the Knights"; mes "With this emblem, everybody will see that you are on of us!"; mes "Now you can get quests and other benefits here in Invek"; end; case 2: mes "[Lord Asterix]"; mes "I'm waiting here for you, kido!"; end; } if (countitem(714) < 5 && countitem(909) < 100 && countitem(941) < 25 && countitem(950) < 100) { switch (select("Okay, my Lord.")) { case 1: mes "[Lord Asterix]"; mes "May the king bless you"; end; } } } case 2: mes "[Lord Asterix]"; mes "So, you are not sure yet, kid?"; mes "Let me explain something to you..."; mes "We are the one who fight for the king. We have to bring up our souls for an unreacheable kingdom"; next; mes "[Lord Asterix]"; mes "Who else could do this?"; end; case 3: mes "[Lord Asterix]"; mes "I hope to see you again soon!"; end; } } if (countitem(7281) > 1) { mes "[Lord Asterix]"; mes "Traitor, go away!!"; close; } }
-
Start_'s post in Battle Royale like PUBG was marked as the answer
Download : https://goo.gl/Yvdmyw
I will translate scripts to English if you want it.
-
Start_'s post in Is it possible to add hyperlinks on 'books'? was marked as the answer
Is this can be used? I don't know but you can try.
https://rathena.org/board/topic/85593-request-npc/?do=findComment&comment=213417
and
https://rathena.org/board/topic/106579-item-link-input/
and
-
Start_'s post in Quest log quest, what does this [email protected] < means was marked as the answer
[email protected] - scope integer variable
[email protected] = 11124;
You can see line 2 and line 4 in picture.
if(checkquest([email protected]
mean
if(checkquest(11124
and it will loop +1 +1 +1 +1 +1 will be
if(checkquest(11125 - 11134
//
Edit #1
This is quest 11124
-
Start_'s post in Make a quest before can enter in the map was marked as the answer
prt_fild05,315,183,3 script Warp Man 635,{ if(yourVariable==1){ warp "prontera",26,203; end; } mes "Hello you cannot warp now."; close; } prt_fild05,317,183,3 script Warp Quest 635,{ if(yourVariable==0){ mes "You can warp now talk with Warp Man."; set yourVariable,"1"; close; } mes "Hello, Good to see you again."; close; }
-
Start_'s post in if else was marked as the answer
if(Zeny <= 100000){ mes "You dont have enough zeny"; close; } else{ set Zeny, Zeny-100000; skilleffect 34,0; sc_start SC_BLESSING,500000,10; skilleffect 29,0; sc_start SC_INCREASEAGI,500000,10; skilleffect 33,0; sc_start SC_ANGELUS,500000,10; skilleffect 74,0; sc_start SC_MAGNIFICAT,500000,5; skilleffect 75,0; sc_start SC_GLORIA,500000,5; skilleffect 66,0; sc_start SC_IMPOSITIO,500000,5; skilleffect 361,0; sc_start SC_ASSUMPTIO,500000,5; close; }
-
Start_'s post in Izlude Map Dark? NPC out of place was marked as the answer
Check
npc\scripts_athena.conf
npc\scripts_warps.conf
npc\re\scripts_athena.conf
npc\re\scripts_warps.conf
npc\pre-re\scripts_athena.conf
npc\pre-re\scripts_warps.conf
for Enable / Disable scripts.
-
Start_'s post in outdated visual studio please was marked as the answer
VISUAL STUDIO 2008 : https://www.microsoft.com/en-us/download/details.aspx?id=7873
VISUAL STUDIO 2008 SP1 : https://www.microsoft.com/en-us/download/details.aspx?id=10986
VISUAL STUDIO 2010 : https://www.microsoft.com/en-us/download/details.aspx?id=23507
VISUAL STUDIO 2012 : https://www.microsoft.com/en-us/download/details.aspx?id=30682
VISUAL STUDIO 2013 : https://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx
VISUAL STUDIO 2015 : https://beta.visualstudio.com/visual-studio-community-vs/
VISUAL STUDIO 2015 C++ TOOLS ( IF FORGET TO CHECK C++ ON 2015 INSTALLER )
64BIT
https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe
32 BIT
https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe
-
Start_'s post in can't use atcommand was marked as the answer
atcommand "@vip +2h "+strcharinfo(0)+"";
-
Start_'s post in Mind Break Skill was marked as the answer
Oh sorry, It's can use to guildmates now right?
Then change vaules on " skill_db.txt " to default.
402,9,6,1,0,0x1,0,5,1,no,0,0,0,none,0,0x0, PF_MINDBREAKER,Mind Breaker -
Start_'s post in My script got an error but no error in game was marked as the answer
Try
to
Not sure sorry If doesn't work.