• Having trouble receiving email verification when signing up? Contact a staff member via our Discord server!
  • Consider joining our Discord server if you haven't already! Discord is a free voice and text chat platform that's more or less a combination of Skype and Teamspeak. Using Discord, you can chat with other Relic Castle members in real-time! Wowza! Click here for the details!

Help Pokeballs don't work for me.

RaidAgony

Rookie
Member
Posts
3
#1
Everytime I try to open the pokeball I get this error:
---------------------------
Untitled
---------------------------
Exception: RuntimeError
Message: Script error within event 3, map 25 (Route 4):
Exception: NoMethodError
Message: (eval):1:in `pbExecuteScript'undefined method `pbRecieveItem' for Kernel:Module
***Full script:
Kernel.pbRecieveItem(
PBItems::GREATBALL,5)

Interpreter:243:in `pbExecuteScript'
Interpreter:1606:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:104:in `update'
Scene_Map:102:in `loop'

Interpreter:276:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:104:in `update'
Scene_Map:102:in `loop'
Scene_Map:115:in `update'
BW_MapClock:61:in `main'

---------------------------
OK
---------------------------
And also the script I use is:
Kernel.pbRecieveItem(
PBItems::GREATBALL,5)
 

Marina

Elite Trainer
Member
Posts
127
#2
You spelled it wrong: instead of Kernel.pbReceiveItem you wrote Kernel.pbRecieveItem
replace the script with this:

Ruby:
Kernel.pbReceiveItem(:GREATBALL,5)
if you're using Essentials 17.2 the code should work fine. I think the code (PBItems::GREATBALL,5) is for Essentials v.16.2 or older
 
Top