Jump to content

tysonlim1989

Members
  • Posts

    22
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Malaysia

tysonlim1989's Achievements

Poring

Poring (1/15)

1

Reputation

  1. Will automatically kick a player out from a map after a specified time. Example, when a player goes into a map, after 1 minute, the player will be kick out of the map. Thank you for helping. [size=4]set .timeout, 60;[/size] if ( .timeout == 0 ) set .timeout, 60; set .respawnmap$, "Prontera"; set .respawnx, 148; set .respawny, 380; set .@dif, strnpcinfo(0); set .remind[.@dif], 0; for ( set .@i, 1; .@i <= 9; set .@i, .@i +1 ) deletearray getd(".group"+ .@i +"limit"+ .@dif), getd(".group"+ .@i +"idsize"); set .nobodycounter[.@dif], 0; getmapxy .@map$, .@x, .@y ,1; set .starttime[.@dif], gettimetick(0); do { set .remaintime[.@dif], .timeout * 1 + .starttime[.@dif] - gettimetick(0); set .@hour[.@dif], .remainTime[.@dif] / 3600 ; set .@min[.@dif], .remainTime[.@dif] % 3600 / 60 ; set .@sec[.@dif], .remainTime[.@dif] % 3600 % 60 ; delwaitingroom strnpcinfo(0); waitingroom "Time Left = "+( ( .@hour[.@dif] )?( .@hour[.@dif] +":"):"" )+( ( .@min[.@dif] < 10 )?"0"+ .@min[.@dif]: .@min[.@dif] )+":"+( ( .@sec[.@dif] < 10 )?"0"+ .@sec[.@dif]: .@sec[.@dif] ), 0; if ( getmapusers(.@map$) ) set .nobodycounter[.@dif], 0; else { set .nobodycounter[.@dif], .nobodycounter[.@dif] +1 ; if ( .nobodycounter[.@dif] > .nobodygiveup * 1 ) break; } sleep 995; } while ( .remaintime[.@dif] > 1 ); set .remaintime[.@dif], 0; delwaitingroom "MVP Summoner#"+ .@dif; mapwarp .@map$, .respawnmap$, .respawnx, .respawny; end; close2; [/Code] I'm not building a MVP room, just try to copy the art work from the script but can't really make it to work.
  2. the player just stay afk inside the event map, and it's hard for me to kick them 1 by 1 from the map. I can't start my next event until I kick all the players out from the map EDIT: I've updated my code again, but it won't remove if the player is not online. Anyway to solve this? Thank you. 30001,Red_Potion,Pass,3,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ atcommand "@item 30000"; sleep2 10000; atcommand "@item 30000 -1"; sleep2 1000; atcommand "@warp prontera 148 383"; },{},{}[/Code]
  3. I wanted to make a paper that will teleport a player back to save point after a period of time for my event. If not the player will forever staying inside the map. The item will gone after logoff or times up. EDIT: I've updated my code again, but it won't remove if the player is not online. Anyway to solve this? Thank you. 30001,Red_Potion,Pass,3,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ atcommand "@item 30000"; sleep2 10000; atcommand "@item 30000 -1"; sleep2 1000; atcommand "@warp prontera 148 383"; },{},{}[/Code] Just an idea, is that possible to use "duration" here to delete the item? If yes, how to put in the function into the item? Thank you for helping.
  4. After updated to the latest SVN i got this error. All characters item is gone after relog or the server dc. Picture included ( char server). Please help me since none can play if the item will gone after relog. Thank you.
  5. Why there is a blank part that I could not implement GAT on it? Anyway to solve it? Your help is much appreciated!
  6. I need to make an etc that attach to a single player only. For quest use. Not available for trading or storing. Thank you for helping.
  7. Can anyone make a autoloot potion script for me? Example, by eating the potion you will grant a 30mins looting item that is below or equal to 1% dropping rate Thanks
  8. Hi there, I need lots of help. Hope someone can guide me through my entire script I would like to make a championship battle(PVP 1 vs 1) script. 1) Broadcast when registration is open. Every hour from 2pm to 5pm. 2) Auto open registration every saturday 2pm - 6pm. (Battle start from 7pm-10pm) 180mins 3) Only 32people will be allowed. (80+16) (40+8) (20+4) (10) total 178mins 4) Random assign for Opponents. 5) Will broadcast who vs who 1min before the battle start. 6) At 7pm, npc will start letting player( the 1st group) to enter the battle stage. The battle will last for 5mins. 7) There will be 1 min interval for every battle. 8) If draw, consider both players are lose. 9) Winner will continue the battle. Below is the script I build so far. //Auto broadcast OnInit: set .Time,10080; // Announce every x Minutes. announce "Registration is open"; OnMinute60: announce "Only 3 hours left for registration" OnMinute120: announce "Only 2 hours left for registration" OnMinute180: announce "Only 1 hour left for registration" OnMinute230: announce "Only 10minutes left for registration" end; //Registration prontera,303,234,5 script Journey 100,{ mes "[Journey]"; mes "Welcome to RO championship!"; mes "From here you can gain special prizes if you are the final winner!"; mes "Do you want to join the battle?"; next; switch(select("Yes:No")){ case 1: case 2: mes "[Journey]"; mes "Bye~"; close; } Thanks for helping
  9. cause there's tons of wordings in msgstringtable.txt. I don't think I'm able to find them and modify them
  10. oh that's bad, I thought I can modify them in texture
  11. Hi there, I cant' find the image name for the button. Anyone can give me the name of the image and what english word supposed to have in the place? Thanks (Image included) I need those with red box. I've translated all others. Thank you for helping.
  12. hi I've solve the problem. You just need to convert all ASCII to korean and make a GRF out of your data folder. The item will be displayed in ur inventory. But still, it won't show on your head.
  13. wierd... the problem did not solve =(
  14. same problem here =( http://rathena.org/board/topic/76031-problem-with-custom-item/
×
×
  • Create New...