Jump to content

Patskie

Members
  • Posts

    1702
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Patskie

  1. You use : .item_list[.@i] = rand( 901,968 ); Which means randomly choose an item from item id 901 -> 968. Unfortunately we don't have item 927 and 933 and that will result to null values 926,Scale_Of_Snakes,Snake Scale,3,82,,10,,,,,,,,,,,,,{},{},{} 928,Insect_Feeler,Insect Feeler,3,114,,10,,,,,,,,,,,,,{},{},{} 929,Immortal_Heart,Immortal Heart,3,374,,10,,,,,,,,,,,,,{},{},{} 930,Rotten_Bandage,Rotten Bandage,3,350,,10,,,,,,,,,,,,,{},{},{} 931,Orcish_Voucher,Orcish Voucher,3,142,,10,,,,,,,,,,,,,{},{},{} 932,Skel_Bone,Skel-Bone,3,232,,10,,,,,,,,,,,,,{},{},{} 934,Mementos,Memento,3,600,,10,,,,,,,,,,,,,{},{},{} Reference : db/pre-re/item_db.txt | db/re/item_db.txt
  2. Show your script? perhaps you input the wrong id number or id number doesn't exist?
  3. The easiest way i guess : prontera,150,150,0 script Sample 123,{ setarray .Menu$[0],"test1","test2","test3","test4","test5"; .@selected = select(implode(.Menu$, ":")) - 1; mes "You have selected " +.Menu$[.@selected]; close; } But if you want it to use a for loop : prontera,150,150,0 script Sample 123,{ setarray .Menu$[0],"test1","test2","test3","test4","test5"; for ( .@i = 0; .@i < getarraysize(.Menu$); .@i++ ) { .@menu$ += .Menu$[.@i]; .@menu$ += ":"; } .@selected = select(.@menu$) - 1; mes "You have selected " +.Menu$[.@selected]; close; }
  4. Can you elaborate more on your request?
  5. Credits to @Emistry : http://pastebin.com/raw.php?i=L5HFEggR
  6. - specialeffect 88; + specialeffect2 88;
  7. Like this? query_sql "SELECT COUNT(`char_id`) FROM `guild_member` WHERE `guild_id` = '" +getcharid(2)+ "'",.@count; if ( .@count > 16 ) { // go } else { // can't go }
  8. Wiki is always there to help you Basic_Scripting
  9. Seriously, asking people to put those script on the pastebin is a bad habit. It's a matter of copy and paste. Help yourself bro
  10. Patskie

    pvp points

    + means add it into the script.
  11. Patskie

    pvp points

    + OnPCDieEvent: + if ( strcharinfo(3) == "your pvp map" ) + #PVPPOINTS--; + end;
  12. getitem <item_id>,<amount>;
  13. Patskie

    pvp points

    Sorry for the typo. The script should terminate by doing the following : 1. if your map is not prontera or any map you set. 2. if the delay is still ongoing 3. if you kill again the player whom you killed last time. 4. if you suicide. that's it unless you want something to add btw i didn't test the script.
  14. Patskie

    pvp points

    - strcharinfo(3) != "prontera" + strcharinfo(3) != "your pvp map" - #CASHPOINTS++; + #PVPPOINTS++; - dispbottom "You now have " +#CASHPOINTS+ " cash points."; + dispbottom "You now have " +#PVPPOINTS+ " cash points.";
  15. Patskie

    pvp points

    Try : http://pastebin.com/raw.php?i=4f8XCuPB
  16. This can be done through script if i get the idea of your request : http://pastebin.com/raw.php?i=hYaD5eB6
  17. npc/mapflag/nowarp.txt or npc/mapflag/nowarpto.txt ?
  18. Client files mo (except LUA) tama rin? Kasi kung tama yan wala ka dapat error
  19. Examples: name - permanent character integer variable name$ - permanent character string variable @name - temporary character integer variable @name$ - temporary character string variable $name - permanent global integer variable $name$ - permanent global string variable $@name - temporary global integer variable $@name$ - temporary global string variable .name - NPC integer variable .name$ - NPC string variable .@name - scope integer variable .@name$ - scope string variable #name - permanent local account integer variable #name$ - permanent local account string variable ##name - permanent global account integer variable ##name$ - permanent global account string variable
  20. All numbers less/greather than 0 is true otherwise it's false ( when number is 0 ). That's why i negate it.
×
×
  • Create New...