Jump to content

  •  

Photo
* * * * * 63 votes

【 Emistry © 2013 】E-Scripts Collection

script npc custom event quest

  • Please log in to reply
483 replies to this topic

#41 Emistry

Emistry

    ▬▬▬ E M I S T R Y ▬▬▬

  • Global Moderators
  • 6882 posts

User's Awards

     

Posted 12 January 2012 - 03:00 AM

you can edit like this

at line 82 or 87 ....the RandomizeItem Function calling there...


10% Rate
if( rand(100) < 10 ) RandomizeItem( 1,rand(1,3) );

5% Rate
if( rand(100) < 5 ) RandomizeItem( 1,rand(1,3) );

  • 1

#42 PapaZola

PapaZola

    GM Papa

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 828 posts
  • Gender: Male
  • Location: Malaysia

Posted 12 January 2012 - 03:35 AM

thx emistry
thx for share ur script
  • 0

#43 Emistry

Emistry

    ▬▬▬ E M I S T R Y ▬▬▬

  • Global Moderators
  • 6882 posts

User's Awards

     

Posted 12 January 2012 - 04:41 AM

Well..this is my First Release for the year 2012 ~ :)
and also a Release before i away from rAthena Works for few weeks... Dx

 

[ Update ] : Added a Multi Currency Shop Script :

Description :

It is a Simple Shop take use Item Currency to Buy items. It Support Multiple Shop in 1 NPC. This Script is based on the Idea of those other TCG / POD / etc Shop that users keep requesting.
The only different is, this Script only use 1 NPC + 1 Shop ( Invinsible ) NPC to settle all your Problems.
Of Course, that this script can fulfill certain User Request like ,

"Please help me create a Custom Dynamic Shop with Multiple Menu ."..


You can add around ~128 Shop in this NPC. Add the Shop Selection at the Menu / New Cases for each of it.



Simple Explaination :
A Script that allow setup several Shop that using Different Items as Currency to buy Items for the Corresponding Shop...

 





Multi Currency Shop [ Version 3 ]

Changelog :


Scripts : View Download

 


Please let me know if there is any problems. As well as any Suggestion to Improve it.
  • 1

#44 Shadowz

Shadowz

    Poring

  • Members
  • Pip
  • 13 posts
  • Gender: Male
  • Location: Graveyard

Posted 12 January 2012 - 05:02 AM

Nice currency shop. Good for those who have different sets of materials to change for items like me :)
Good job. Will test soon.
  • 0

#45 Emistry

Emistry

    ▬▬▬ E M I S T R Y ▬▬▬

  • Global Moderators
  • 6882 posts

User's Awards

     

Posted 12 January 2012 - 05:25 AM

Based on Post#43

Script : Multi Currency Shop
Fixed several typo of Scripts and Re-Organize parts of the Scripts.

Those who have downloaded it early...please re-download it.

Thank you.
  • 1

#46 PapaZola

PapaZola

    GM Papa

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 828 posts
  • Gender: Male
  • Location: Malaysia

Posted 12 January 2012 - 01:28 PM

moved to
http://rathena.org/b...-item-not-drop/

Edited by PapaZola, 12 January 2012 - 04:07 PM.

  • 0

#47 Emistry

Emistry

    ▬▬▬ E M I S T R Y ▬▬▬

  • Global Moderators
  • 6882 posts

User's Awards

     

Posted 12 January 2012 - 04:18 PM

moved to
http://rathena.org/b...-item-not-drop/




OnNormalKill:
if( rand(100) < 100 ) RandomizeItem( 0,rand(1,3) );
when i adjust the script ( Rate ) to higher....everything work just fine...perhap just the rate you set is too low... ( 5 / 100 to get 1 items )
just adjust the rate and try again .......

anyway.....2 getarg(0) also check for equal to 1 ?? :) i though suppose to be one is 0 and the other one is 1 ???

// Normal Monster in Zone Drops Lists
if( getarg(0) == 0 ) setarray .ItemList[0],13550,7420,12114,12115,12116,12117,12075,12090,12085,12080,12095,12100;
// Normal Boss in Zone Drops Lists
if( getarg(0) == 1 ) setarray .ItemList[0],29000,29001,29002,29003,29004,29005,29006,29007;



  • 1

#48 Natsu Dragneel

Natsu Dragneel

    Poporing

  • Members
  • PipPipPipPip
  • 140 posts
  • Gender: Male
  • Location: Port Malaya

Posted 13 January 2012 - 01:36 AM

nice script!
  • 0

#49 PapaZola

PapaZola

    GM Papa

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 828 posts
  • Gender: Male
  • Location: Malaysia

Posted 14 January 2012 - 01:26 PM

emistry
i want ask question about farm zone
can i change other mvp?
  • 0

#50 trann123

trann123

    Poring

  • Members
  • Pip
  • 13 posts
  • Gender: Male
  • Location: Ph

Posted 15 January 2012 - 02:52 AM

Can you help me set up the flower counting game? what should I Change and Where should I Put the prize
  • 0

#51 Emistry

Emistry

    ▬▬▬ E M I S T R Y ▬▬▬

  • Global Moderators
  • 6882 posts

User's Awards

     

Posted 15 January 2012 - 08:23 PM

emistry
i want ask question about farm zone
can i change other mvp?

during i write this script....coz of lazy of thinking of what MVP should i put it....so i just use the Bloody Branch script to summon the MVP Monster Randomly....
anyway..if you wan to change...just edit this line.
monster .Map$,0,0,"[ Farm Zone ] Guardian",-3,5,strnpcinfo(0)+"::OnBossKill";
change the Number -3 to MVP Name that you want...just make sure you remain the OnBossKill Event Label



 


Can you help me set up the flower counting game? what should I Change and Where should I Put the prize


add prize ?
but make sure it is below these lines...

iRight:
if( #EventDelay > gettimetick(2) ){
dispbottom "Sorry, Time Penalty : Remain "+( #EventDelay - gettimetick(2) )+" seconds.";
}else{

find this line ( or somewher around this line )
npctalk "[ "+strcharinfo(0)+" ] , You're Correct.";
'
add below / above....
getitem <itemID>,<Amount>;

  • 1

#52 Emistry

Emistry

    ▬▬▬ E M I S T R Y ▬▬▬

  • Global Moderators
  • 6882 posts

User's Awards

     

Posted 16 January 2012 - 12:11 AM

[ Update ] : Updated Refine Function Script :

Description :

It is a Function Script for Refine Equipment without Failure Rate. The script are now able to use indenpendently in a NPC or an Item. Which mean, you can create multiple or numerous NPC Script + Items Script for Refining in your server. All of the Setting are independent..will not affect each others.

This Script will be able to answer / solve those below problems.

Please make me 1 100% Refiner +1 until +7.......
Please make me 1 100% Refiner +1 until + 10 .......
Please make me a Refine Ticket .....
and so on......



 

The BitMask Table :
//--- Bitmasks ----
// 1 - Top Headgear
// 2 - Armor
// 4 - Left Hand
// 8 - Right Hand
// 16 - Garment
// 32 - Shoes
// 64 - Left Accessory
// 128 - Right Accessory
// 256 - Middle Headgear
// 512 - Lower Headgear
If you want to allow the refine on those part....then just put in the Number ( for Single Part Refiner ) or Add in all the Number ( for Multiple Part Refiner )

For Example :
A Refiner that can refine Top Headgear Only ( BitMask = 1 )
A Refiner that can refine Both Left / Right Accessory Only ( BitMask = 126 + 64 = 190 )
A Refiner that can refine Armor / Garment / Shoes Only ( BitMask = 2 + 16 + 32 = 50 )
and etc.....

 
Function Script Calling :
callfunc( "RefineFunc",<itemID>,<BitMasks>,<MaxRefine>,<CheckEquip>,<RefineMode> );

Explaination on Each Argument :

// itemID -> Item that will be used.
// BitMask -> Refer to above bitmask table.
// MaxRefine -> What is the Max Refine. [ Can Bypass Default Server Max Refine ]
// CheckEquip -> Check Equipments is Refineable or not. [ 0 = Disable / 1 = Enable ]
// RefineMode -> +1 / Max Refine. [ 0 = +1 Refine / 1 = Max Refine ]

 


Sample Script :

Use as Item ( Refine Ticket ) :
501,Red_Potion,Red Potion,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc( "RefineFunc",501,63,10,1,1 ); },{},{}
Caution : Change Item Type to 11

Use as NPC Script ( Custom 100% Refiner ) :
prontera,155,181,5 script Refiner 757,{
callfunc( "RefineFunc",501,63,10,1,1 );
}

You can create as many NPC / Items for refine as you want to...
just make sure youprovide the correct Settings.

With this script, you can create several NPC that can allow users to refine items 100% success using certain items and different max refine level.
So, that your server wont need to focus on using 1 NPC. You can make 1 NPC for refine +5 / +6 / +7 using Elunium without fail, then you can further the refine to +8 / +9 using another NPC with different Items, and lastly +10 another NPC. It is all up to you.


 


Refine Function [ Version 4 ]

Changelog :


Scripts : View Download

 


Please spend your time to read all the things i have write / mentioned in the post before you asking any questions.

if got bug / problems please do report to me. :(
  • 2

#53 Tempo

Tempo

    Poring

  • Members
  • Pip
  • 22 posts
  • Gender: Male
  • Location: Philippines

Posted 16 January 2012 - 12:54 AM

:( very nice script. :)
  • 0

#54 manabeast

manabeast

    Ryo

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 840 posts
  • Gender: Male
  • Location: malaysia

Posted 17 January 2012 - 10:44 PM

Multi Currency Shop

no guide on this? like if want use TCG and zeny? or TCG or Zeny?

Refine Function [ Version 4 ]

i read little no understand, if i just want a Npc only and this npc just can refine+1~+5 only for 100%?


Reply (21/1/12 12.20am)
@thx for the multi currency. i want use this for TCG

@oh ic. if like that i can't use this script. it's will make my server unbalance @@" all +10 ==" no more rare equipment already. thx anyway

Edited by manabeast, 20 January 2012 - 11:21 AM.

  • 0

#55 Emistry

Emistry

    ▬▬▬ E M I S T R Y ▬▬▬

  • Global Moderators
  • 6882 posts

User's Awards

     

Posted 20 January 2012 - 10:27 AM

if want use TCG and zeny? or TCG or Zeny?

read here

CaseCH:
switch(getarg(0))
{
  Case 1:
   // Item Currency
   set @Currency,7227;
   // Item ID Lists
   setarray .ItemLists[0],2301,2302,2303,2304,2305,2306;
   // Item Price
   setarray .ItemPrice[0],1,2,3,4,5,6;
   return;
  Case 2:
   // Item Currency
   set @Currency,7539;
   // Item ID Lists
   setarray .ItemLists[0],2301,2302,2303,2304,2305,2306;
   // Item Price
   setarray .ItemPrice[0],1,2,3,4,5,6;
   return;
  Case 3:
   // Item Currency
   set @Currency,909;
   // Item ID Lists
   setarray .ItemLists[0],2301,2302,2303,2304,2305,2306;
   // Item Price
   setarray .ItemPrice[0],1,2,3,4,5,6;
   return;
  // Case 4,5,6.....etc...
  default:
   mes "Wrong Selection / Configurations";
   close;

i read little no understand, if i just want a Npc only and this npc just can refine+1~+5 only for 100%?

up to any refine you want also can....all is 100% rate for refine
  • 2

#56 manabeast

manabeast

    Ryo

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 840 posts
  • Gender: Male
  • Location: malaysia

Posted 20 January 2012 - 11:32 AM

i like the multi currency. i was search easy tcg scrip =).

i use default i not yet change anything. here the ss

Attached Files


  • 0

#57 brianj070707

brianj070707

    Drops

  • Members
  • PipPip
  • 48 posts
  • Gender: Male
  • Location: Philippines

Posted 22 January 2012 - 03:47 PM

AWESOME EVENTS AW YEAH.
  • 0

#58 Emistry

Emistry

    ▬▬▬ E M I S T R Y ▬▬▬

  • Global Moderators
  • 6882 posts

User's Awards

     

Posted 24 January 2012 - 04:47 AM

i like the multi currency. i was search easy tcg scrip =).

i use default i not yet change anything. here the ss

actually...it doesnt affect anything here...just a simple warning show you that the item that currently selling in this shop might be abused due to player can farm zeny buy purchase the item from the shop and sell back to shop because they can earn the zeny due to cost of purchase is lower than amount of gain...

-	shop	Emistry_Shop	-1,512:1
change the value 1 to any value with higher than the overchanged price of Apple....
  • 2

#59 manabeast

manabeast

    Ryo

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 840 posts
  • Gender: Male
  • Location: malaysia

Posted 25 January 2012 - 07:45 AM

thx.
  • 0

#60 The King

The King

    Poring

  • Members
  • Pip
  • 14 posts
  • Gender: Male
  • Location: New Zealand

Posted 30 January 2012 - 10:17 PM

Hi, I am just wondering why any flowers will not spawn for the Flower Counting script?
  • 0





Also tagged with one or more of these keywords: script, npc, custom, event, quest

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users