-
Posts
1702 -
Joined
-
Last visited
-
Days Won
19
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Everything posted by Patskie
-
This : izlude.gat,123,141,6 script Healer 81,{ percentheal 100,100; skilleffect 34,0; sc_start SC_BLESSING,360000,10; skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10; end; }
-
Change close; to end; Reference : http://rathena.org/board/topic/81860-r17280-slight-script-engine-update/
-
Try this one, I'm at school so please bear with me if i commit mistake ( inventory or equipment only ) : - script Sample -1,{ OnPCLoginEvent: set .@armor, 2302; getinventorylist; for ( set .@i, 0; .@i < @inventorylist_count; set .@i, .@i + 1 ) { if ( @inventorylist_id[.@i] == .@armor ) { set .@count, .@count + 1; if ( .@count > 1 ) end; if ( getequipid(2) == .@armor ) { if ( !getequipcardcnt(2) ) end; successremovecards 2; mes "Success"; } else { set .@cards, @inventorylist_card1[.@i]; if ( !.@cards ) end; delitem @inventorylist_id[.@i], 1; getitem .@armor, 1; getitem .@cards, 1; mes "Success!"; } } } end; }
-
Try doing this : brasilis,232,322,5<TAB>script<TAB>Novice Ladder<TAB>897,{
-
You cannot load those two using @loadnpc @loadnpc <path> Loads an NPC script by path. Example: @loadnpc npc/custom/jobmaster.txt
-
so its gonna be like this right? bonus2 bHPAttackRatio,7,50; ? yea, but u need Epoque Epansion Pack tho.. search mo lng, mdami syang bago dun like this list Do not use your native language on any English section.
-
Well that is normal
-
Did you use glistening coat?
-
Additional Note : rand()%100 < 15 // 15% chance Change 15 to whatever you want.
-
Edited my previous post
-
I mean the whole content of the file Try this : if ( sd && tsc && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ROGUE && rand()%100 < 15 && ( skillid == RG_STRIPWEAPON && tsc->data[SC_CP_WEAPON] || skillid == RG_STRIPSHIELD && tsc->data[SC_CP_SHIELD] || skillid == RG_STRIPARMOR && tsc->data[SC_CP_ARMOR] || skillid == RG_STRIPHELM && tsc->data[SC_CP_HELM] ) ) { int item_id = 7139; // Glistening Coat int ii; ARR_FIND( 0, MAX_INVENTORY, ii, sd->status.inventory[ii].nameid == item_id ); if ( ii < MAX_INVENTORY ) { pc_delitem( sd, ii, 1, 0, 0, LOG_TYPE_CONSUME); switch ( skillid ) { case RG_STRIPWEAPON: status_change_end( bl, SC_CP_WEAPON, INVALID_TIMER ); sc_start( bl, SC_STRIPWEAPON, 100, skilllv, d ); break; case RG_STRIPSHIELD: status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER ); sc_start( bl, SC_STRIPSHIELD, 100, skilllv, d ); break; case RG_STRIPARMOR: status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER ); sc_start( bl, SC_STRIPARMOR, 100, skilllv, d ); break; case RG_STRIPHELM: status_change_end( bl, SC_CP_HELM, INVALID_TIMER ); sc_start( bl, SC_STRIPHELM, 100, skilllv, d ); break; } clif_skill_nodamage( src, bl, skillid, skilllv, i ); break; } }
-
Can you show your current script
-
Try this then : if ( sd && tsc && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ROGUE && rand()%100 < 15 && ( skill_id == RG_STRIPWEAPON && tsc->data[SC_CP_WEAPON] || skill_id == RG_STRIPSHIELD && tsc->data[SC_CP_SHIELD] || skill_id == RG_STRIPARMOR && tsc->data[SC_CP_ARMOR] || skill_id == RG_STRIPHELM && tsc->data[SC_CP_HELM] ) ) { int item_id = 7139; // Glistening Coat int ii; ARR_FIND( 0, MAX_INVENTORY, ii, sd->status.inventory[ii].nameid == item_id ); if ( ii < MAX_INVENTORY ) { pc_delitem( sd, ii, 1, 0, 0, LOG_TYPE_CONSUME); switch ( skill_id ) { case RG_STRIPWEAPON: status_change_end( bl, SC_CP_WEAPON, INVALID_TIMER ); sc_start( bl, SC_STRIPWEAPON, 100, skill_lv, d ); break; case RG_STRIPSHIELD: status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER ); sc_start( bl, SC_STRIPSHIELD, 100, skill_lv, d ); break; case RG_STRIPARMOR: status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER ); sc_start( bl, SC_STRIPARMOR, 100, skill_lv, d ); break; case RG_STRIPHELM: status_change_end( bl, SC_CP_HELM, INVALID_TIMER ); sc_start( bl, SC_STRIPHELM, 100, skill_lv, d ); break; } clif_skill_nodamage( src, bl, skill_id, skill_lv, i ); break; } }
-
http://rathena.org/board/topic/86906-stalker-bypass-fcp/?p=220215. Why not give a try?
-
Move to source request
-
I modified the script a bit, into this: - shop costume_shop -1,501:-1 alb2trea,56,41,5 script Capt. Krauser 561,{ mes "^0000ff[Capt. Krauser]^000000"; mes "Ahoy mate! Do ye have spare costumes"; mes "that ye wanna get rid 'o?"; next; set .@s, select( "No! Goood bye.", "Trade-in Costumes", "More information" ); if( .@s == 1 ) mes "^0000ff[Capt. Krauser]^000000"; mes "Okay 'ave a nice day."; else if( .@s == 3 ) { mes "^0000ff[Capt. Krauser]^000000"; mes "I needs more clothes fer me mates fer our adventures in th' sea, so I be buyin' some fer these ^00ff00Pirate Doubloons^000000 that we 'ave!"; next; mes "^0000ff[Capt. Krauser]^000000"; mes "These loots might come in handy fer ye someday too mate!"; } getinventorylist; .@calc = 1024|2048|4096|8192;// to lazy to calculate for( set .@i, 0; .@i < @inventorylist_count; set .@i, .@i + 1 ) if( !@inventorylist_expire[.@i] ) { if ( getiteminfo( @inventorylist_id[.@i],5 ) & .@calc ) { for( set .@j, 0; .@j < @inventorylist_amount[.@i]; set .@j, .@j + 1 ) { set .@list_id[ .@size_shop ], @inventorylist_id[.@i]; set .@size_shop, .@size_shop + 1; } } } if( !.@size_shop ) mes "^0000ff[Capt. Krauser]^000000"; mes "Shiver me timbers! I don't see any costumes on yer booty mate!"; else { mes "^0000ff[Capt. Krauser]^000000"; mes "Okay, here's a list o' th' costumes in yer loot."; next; npcshopitem "costume_shop",501,-1; for( set .@i, 0; .@i < .@size_shop; set .@i, .@i + 1 ) npcshopadditem "costume_shop",.@list_id[.@i],0; npcshopdelitem "costume_shop",501; callshop "costume_shop", 1; npcshopattach "costume_shop"; } end; OnBuyItem: // if( !checkweight2( .reward_ID,.reward_amount ) ) { // message strcharinfo(0),"You need additional weight capacity to complete this trade."; // close; // } set .@count, getarraysize( @bought_nameid ); for( set .@i, 0; .@i < .size_count; set .@i, .@i + 1 ) {// don't check the weight.. set .@check, .reward_amount[.@i] * .@count; if( .@check > 30000 ) { message strcharinfo(0),"You can't purchase that many "+ getitemname( .reward_ID[.@i] ) +"."; end; } set .@gain$, .@gain$ + ( getstrlen( .@gain$ ) ? ", " : "" ) + .@check +" "+ getitemname( .reward_ID[.@i] ); } mes "Sell the costume for "+ .@gain$ +"?"; next; if( select( "Yes, I sell", "No" ) -1 ) end; for( set .@i, 0; .@i < .@count; set .@i, .@i + 1 ) if ( countitem( @bought_nameid[.@i] ) < @bought_quantity[.@i] ) { mes "Have you lost one item?"; close; } for( set .@i, 0; .@i < .@count; set .@i, .@i + 1 ) delitem @bought_nameid[.@i], @bought_quantity[.@i]; for( set .@i, 0; .@i < .size_count; set .@i, .@i + 1 ) getitem .reward_ID[.@i], .reward_amount[.@i] * .@count; mes "Nice doin' business wit' ye!"; close; OnInit: setarray .reward_ID, 7875; // item ID gained - you can add more ID <item ID>, <item ID>,... setarray .reward_amount, 1; // item count gained - ( count of the item /element of array of .reward_ID ) set .size_count, getarraysize( .reward_amount ); end; } and I get this error: What should I do? :/ Try changing : else if( .@s == 3 ) { mes "blabla more informations."; } to : if( .@s == 3 ) { mes "blabla more informations."; }
-
Did you set this to yes? conf/battle/skill.conf#L246
-
If you still do not know where to start. I suggest you to use this helpful tool http://rathena.org/board/files/file/2386-ea-sprite-name-generator/
-
He want a dispbottom approach
-
Yes, random coordinate. So setting x,y,x2,y2 will do the trick? It won't bug the script? Yes. Set them all to 0
-
Why not create multiple items so that people can claim and claim? If you want it that way then it seems like creating this promo script is useless. You can create an item reward npc wherein you can set your prize and let your players get and get and get. Try changing all : if ( select("Yes:No, thanks") - 1 ) end; to : if ( select("Yes:No, thanks") - 1 ) close;
-
On your conf/battle/drops.conf#L40, Try : item_rate_common: 250000 item_rate_common_boss: 250000 item_drop_common_min: 1 item_drop_common_max: 10000 // The rate healing items are dropped (items that restore HP or SP) item_rate_heal: 250000 item_rate_heal_boss: 250000 item_drop_heal_min: 1 item_drop_heal_max: 10000 // The rate at which usable items (in the item tab) other then healing items are dropped. item_rate_use: 250000 item_rate_use_boss: 250000 item_drop_use_min: 1 item_drop_use_max: 10000 // The rate at which equipment is dropped. item_rate_equip: 250000 item_rate_equip_boss: 250000 item_drop_equip_min: 1 item_drop_equip_max: 10000 // The rate at which cards are dropped item_rate_card: 250000 item_rate_card_boss: 250000 item_drop_card_min: 1 item_drop_card_max: 10000
-
function script Sample { if( isequippedcnt( 4403 ) > 2 ){ message strcharinfo(0),"Cant Wear More than 2 Kiel Cards."; nude; } return; }
-
Like this? http://rathena.org/board/topic/56757-requesting-for-item-script/?p=67720